-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
browser: add select all/inversion/none menus to target chooser lists
- Loading branch information
Showing
22 changed files
with
90 additions
and
23 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
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
6 changes: 2 additions & 4 deletions
6
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/class.select..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,9 +1,7 @@ | ||
accessing - toolbuilder | ||
class: aClass select: aBoolean | ||
|
||
self target classes: | ||
self selectedClasses: | ||
(aBoolean | ||
ifFalse: [self target classes copyWithout: aClass] | ||
ifTrue: [(self target classes copyWith: aClass) withoutDuplicates]). | ||
|
||
self changed: #selectedClasses. | ||
ifTrue: [(self target classes copyWith: aClass) withoutDuplicates]). |
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/classMenu..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,4 @@ | ||
menus | ||
classMenu: menu | ||
|
||
^ self listMenu: menu for: #classes |
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/classesInSystemCategory..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,4 +1,4 @@ | ||
private | ||
classesInSystemCategory: category | ||
|
||
^ self systemOrganizer listAtCategoryNamed: category | ||
^ self systemOrganizer sl2ClassesInCategory: category |
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
9 changes: 9 additions & 0 deletions
9
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/invertSelection..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,9 @@ | ||
actions | ||
invertSelection: selector | ||
|
||
self | ||
perform: (#'selected{1}:' format: {selector capitalized}) asSymbol | ||
with: | ||
((self perform: (#'available{1}' format: {selector capitalized}) asSymbol) | ||
copyWithoutAll: | ||
(self perform: (#'selected{1}' format: {selector capitalized}))). |
8 changes: 8 additions & 0 deletions
8
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/listMenu.for..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,8 @@ | ||
menus | ||
listMenu: menu for: selector | ||
|
||
^ menu | ||
add: 'Select all' selector: #selectAll: argument: selector; | ||
add: 'Select inversion' selector: #invertSelection: argument: selector; | ||
add: 'Select none' selector: #selectNone: argument: selector; | ||
yourself |
6 changes: 6 additions & 0 deletions
6
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/selectAll..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,6 @@ | ||
actions | ||
selectAll: selector | ||
|
||
self | ||
perform: (#'selected{1}:' format: {selector capitalized}) | ||
with: (self perform: (#'available{1}' format: {selector capitalized})). |
6 changes: 6 additions & 0 deletions
6
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/selectNone..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,6 @@ | ||
actions | ||
selectNone: selector | ||
|
||
self | ||
perform: (#'selected{1}:' format: {selector capitalized}) asSymbol | ||
with: #(). |
8 changes: 8 additions & 0 deletions
8
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/selectedSystemCategories..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,8 @@ | ||
accessing | ||
selectedSystemCategories: categories | ||
|
||
self target systemCategories: categories. | ||
|
||
self changed: #selectedSystemCategories. | ||
|
||
self selectedClasses: (self selectedClasses intersection: self availableClasses). |
9 changes: 3 additions & 6 deletions
9
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/systemCategory.select..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,13 +1,10 @@ | ||
accessing - toolbuilder | ||
systemCategory: category select: aBoolean | ||
|
||
self target systemCategories: | ||
self selectedSystemCategories: | ||
(aBoolean | ||
ifFalse: [self target systemCategories copyWithout: category] | ||
ifTrue: [(self target systemCategories copyWith: category) withoutDuplicates]). | ||
|
||
self changed: #selectedSystemCategories. | ||
|
||
aBoolean | ||
ifTrue: [self selectedClasses: (self selectedClasses , (self classesInSystemCategory: category)) withoutDuplicates] | ||
ifFalse: [self selectedClasses: (self selectedClasses intersection: self availableClasses)]. | ||
aBoolean ifTrue: | ||
[self selectedClasses: (self selectedClasses , (self classesInSystemCategory: category)) withoutDuplicates]. |
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/systemCategoryMenu..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,4 @@ | ||
menus | ||
systemCategoryMenu: menu | ||
|
||
^ self listMenu: menu for: #systemCategories |
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
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/Symbol.extension/instance/format..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,4 @@ | ||
*SwaLintBrowser-UI-formatting-pseudo-override | ||
format: aCollection | ||
|
||
^ (self asString format: aCollection) asSymbol |
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
5 changes: 5 additions & 0 deletions
5
packages/SwaLintBrowser.package/SystemOrganizer.extension/instance/sl2ClassesInCategory..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,5 @@ | ||
*SwaLintBrowser-Core-accessing | ||
sl2ClassesInCategory: categoryName | ||
|
||
^ (self listAtCategoryNamed: categoryName) | ||
collect: [:className | self environment classNamed: className] |
5 changes: 5 additions & 0 deletions
5
packages/SwaLintBrowser.package/SystemOrganizer.extension/methodProperties.json
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,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"sl2ClassesInCategory:" : "ct 12/22/2024 01:25" } } |
2 changes: 2 additions & 0 deletions
2
packages/SwaLintBrowser.package/SystemOrganizer.extension/properties.json
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,2 @@ | ||
{ | ||
"name" : "SystemOrganizer" } |