-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review list command and command support
- Loading branch information
Showing
16 changed files
with
129 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Toplo-Widget-List/ToCommandApplicationStrategy.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Class { | ||
#name : #ToCommandApplicationStrategy, | ||
#superclass : #Object, | ||
#instVars : [ | ||
'element', | ||
'commandApplier' | ||
], | ||
#category : #'Toplo-Widget-List-Command-Support' | ||
} | ||
|
||
{ #category : #accessing } | ||
ToCommandApplicationStrategy >> addCommand: aCommand [ | ||
|
||
self subclassResponsibility | ||
] | ||
|
||
{ #category : #accessing } | ||
ToCommandApplicationStrategy >> commandApplier: aCommandApplier element: anElement [ | ||
|
||
commandApplier := aCommandApplier. | ||
element := anElement | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...-List/ToDataSourceCommandApplier.class.st → ...SourceCommandApplicationStrategy.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
Class { | ||
#name : #ToDataSourceCommandApplier, | ||
#superclass : #ToCommandApplier, | ||
#name : #ToDataSourceCommandApplicationStrategy, | ||
#superclass : #ToCommandApplicationStrategy, | ||
#category : #'Toplo-Widget-List-Command-Support' | ||
} | ||
|
||
{ #category : #accessing } | ||
ToDataSourceCommandApplier >> command: aCommand addedIn: aSelecter [ | ||
ToDataSourceCommandApplicationStrategy >> addCommand: aCommand [ | ||
|
||
element isAttachedToSceneGraph ifFalse: [ | ||
aSelecter applyCommand: aCommand. | ||
commandApplier applyCommand: aCommand. | ||
^ self ]. | ||
element dataSource | ||
notifySelecterCommandApplicationRequest: aCommand | ||
from: aSelecter. | ||
from: commandApplier. | ||
element spaceDo: [ :sp | sp requestNextPulse ] | ||
] |
11 changes: 11 additions & 0 deletions
11
src/Toplo-Widget-List/ToImmediateCommandApplicationStrategy.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Class { | ||
#name : #ToImmediateCommandApplicationStrategy, | ||
#superclass : #ToCommandApplicationStrategy, | ||
#category : #'Toplo-Widget-List-Command-Support' | ||
} | ||
|
||
{ #category : #accessing } | ||
ToImmediateCommandApplicationStrategy >> addCommand: aCommand [ | ||
|
||
commandApplier applyCommand: aCommand | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.