-
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: refactor aspectDependencies, accelerate class list in target…
… chooser
- Loading branch information
Showing
26 changed files
with
77 additions
and
52 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/SwaLintBrowser.package/Collection.extension/instance/sl2SortedByHeavy..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 @@ | ||
*SwaLintBrowser-UI-sorting | ||
sl2SortedByHeavy: propertyBlock | ||
|
||
^ ((self collect: [:ea | ea -> (propertyBlock value: ea)]) | ||
sorted: [:assoc | assoc value] asSortFunction) | ||
collect: [:assoc | assoc key] |
5 changes: 5 additions & 0 deletions
5
packages/SwaLintBrowser.package/Collection.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" : { | ||
"sl2SortedByHeavy:" : "ct 12/22/2024 00:52" } } |
2 changes: 2 additions & 0 deletions
2
packages/SwaLintBrowser.package/Collection.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" : "Collection" } |
Empty file.
4 changes: 4 additions & 0 deletions
4
.../SwaLintBrowser.package/SL2AspectDependencyGraph0.trait/instance/allAspectDependencies.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 @@ | ||
updating-private | ||
allAspectDependencies | ||
|
||
^ self pragmaAspectDependencies , self aspectDependencies |
7 changes: 7 additions & 0 deletions
7
...ges/SwaLintBrowser.package/SL2AspectDependencyGraph0.trait/instance/aspectDependencies.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,7 @@ | ||
updating | ||
aspectDependencies | ||
|
||
^ Dictionary new | ||
"Model" | ||
at: #windowTitle put: #(#labelString); | ||
yourself |
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ser.class/instance/dependentAspectsOn..st → ...ph0.trait/instance/dependentAspectsOn..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
10 changes: 10 additions & 0 deletions
10
...aLintBrowser.package/SL2AspectDependencyGraph0.trait/instance/pragmaAspectDependencies.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,10 @@ | ||
updating-private | ||
pragmaAspectDependencies | ||
|
||
^ (Pragma allNamed: #uses: from: self class to: thisContext methodClass) | ||
collect: [:pragma | | ||
| uses | | ||
uses := pragma argumentAt: 1. | ||
uses isSymbol ifTrue: [uses := {uses}]. | ||
pragma selector -> uses] | ||
as: Dictionary |
10 changes: 10 additions & 0 deletions
10
packages/SwaLintBrowser.package/SL2AspectDependencyGraph0.trait/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,10 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"allAspectDependencies" : "ct 12/22/2024 01:09", | ||
"aspectDependencies" : "ct 12/22/2024 01:00", | ||
"changed:" : "ct 2/8/2022 14:49", | ||
"changedDependent:" : "ct 2/8/2022 14:49", | ||
"dependentAspectsOn:" : "ct 12/22/2024 01:15", | ||
"pragmaAspectDependencies" : "ct 12/22/2024 01:09" } } |
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/SL2AspectDependencyGraph0.trait/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,4 @@ | ||
{ | ||
"category" : "SwaLintBrowser-UI", | ||
"commentStamp" : "", | ||
"name" : "SL2AspectDependencyGraph0" } |
13 changes: 0 additions & 13 deletions
13
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/aspectDependencies.st
This file was deleted.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/availableClasses.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,5 +1,7 @@ | ||
accessing - toolbuilder | ||
availableClasses | ||
<uses: #selectedSystemCategories> | ||
|
||
^ (self selectedSystemCategories gather: [:category | self classesInSystemCategory: category]) | ||
sorted: #name ascending | ||
^ self cached: | ||
[(self selectedSystemCategories gather: [:category | self classesInSystemCategory: category]) | ||
sl2SortedByHeavy: #name] |
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/cached..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 @@ | ||
private | ||
cached: aBlock | ||
|
||
^ caches at: aBlock method ifAbsentPut: aBlock |
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
1 change: 1 addition & 0 deletions
1
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/hasClassSelected..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,5 @@ | ||
accessing | ||
hasClassSelected: aClass | ||
<uses: #selectedClasses> | ||
|
||
^ self selectedClasses includes: aClass |
1 change: 1 addition & 0 deletions
1
packages/SwaLintBrowser.package/SL2TargetChooser.class/instance/hasClassSelectedAt..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,5 @@ | ||
accessing - toolbuilder | ||
hasClassSelectedAt: anInteger | ||
<uses: #hasClassSelected:> | ||
|
||
^ self hasClassSelected: (self availableClasses at: anInteger) |
1 change: 1 addition & 0 deletions
1
...ages/SwaLintBrowser.package/SL2TargetChooser.class/instance/hasSystemCategorySelected..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,5 @@ | ||
accessing | ||
hasSystemCategorySelected: category | ||
<uses: #selectedSystemCategories> | ||
|
||
^ self selectedSystemCategories includes: category |
1 change: 1 addition & 0 deletions
1
...es/SwaLintBrowser.package/SL2TargetChooser.class/instance/hasSystemCategorySelectedAt..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,5 @@ | ||
accessing - toolbuilder | ||
hasSystemCategorySelectedAt: anInteger | ||
<uses: #hasSystemCategorySelected:> | ||
|
||
^ self hasSystemCategorySelected: (self availableSystemCategories at: anInteger) |
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
7 changes: 1 addition & 6 deletions
7
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/aspectDependencies.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
5 changes: 0 additions & 5 deletions
5
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/changedDependent..st
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/dependentAspectsOn..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