-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from OpenSmock/Issue_0110
- Loading branch information
Showing
28 changed files
with
1,381 additions
and
695 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/Pyramid-Bloc/PyramidAbstractChangeDrawOrderCommand.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,24 @@ | ||
Class { | ||
#name : #PyramidAbstractChangeDrawOrderCommand, | ||
#superclass : #PyramidAbstractBlocCommand, | ||
#category : #'Pyramid-Bloc-plugin-bloc-order' | ||
} | ||
|
||
{ #category : #testing } | ||
PyramidAbstractChangeDrawOrderCommand class >> isAbstract [ | ||
|
||
^ self == PyramidAbstractChangeDrawOrderCommand | ||
] | ||
|
||
{ #category : #testing } | ||
PyramidAbstractChangeDrawOrderCommand >> canBeUsedFor: anObject [ | ||
|
||
^ (super canBeUsedFor: anObject) and: [ anObject hasParent] | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
PyramidAbstractChangeDrawOrderCommand >> getValueFor: aBlElement [ | ||
"return current index for testing." | ||
|
||
^ aBlElement parent childIndexOf: aBlElement | ||
] |
41 changes: 0 additions & 41 deletions
41
src/Pyramid-Bloc/PyramidAbstractChangePositionWithSiblingsCommand.class.st
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
17 changes: 17 additions & 0 deletions
17
src/Pyramid-Bloc/PyramidChangeOrderWithIndexCommand.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,17 @@ | ||
Class { | ||
#name : #PyramidChangeOrderWithIndexCommand, | ||
#superclass : #PyramidAbstractChangeDrawOrderCommand, | ||
#category : #'Pyramid-Bloc-plugin-bloc-order' | ||
} | ||
|
||
{ #category : #'as yet unclassified' } | ||
PyramidChangeOrderWithIndexCommand >> setValueFor: aBlElement with: anArgument [ | ||
|
||
| currentIndex parent | | ||
currentIndex := self getValueFor: aBlElement. | ||
parent := aBlElement parent. | ||
(anArgument between: 1 and: parent childrenCount) ifFalse: [ ^ self ]. | ||
|
||
parent removeChild: aBlElement. | ||
parent addChild: aBlElement at: anArgument | ||
] |
41 changes: 0 additions & 41 deletions
41
src/Pyramid-Bloc/PyramidChangePositionWithSiblingsModel.class.st
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.