-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : 'Behavior' } | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
Behavior >> scopesIconName [ | ||
^ #class | ||
] |
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 @@ | ||
Extension { #name : 'RPackage' } | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
RPackage >> scopesIconName [ | ||
^ #package | ||
] |
6 changes: 6 additions & 0 deletions
6
src/NewTools-ScopesBrowser/SpMorphicTreeTableAdapter.extension.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 @@ | ||
Extension { #name : 'SpMorphicTreeTableAdapter' } | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
SpMorphicTreeTableAdapter >> togglePath: aPath [ | ||
widget dataSource togglePath: aPath | ||
] |
8 changes: 8 additions & 0 deletions
8
src/NewTools-ScopesBrowser/SpMorphicTreeTableDataSource.extension.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 @@ | ||
Extension { #name : 'SpMorphicTreeTableDataSource' } | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
SpMorphicTreeTableDataSource >> togglePath: aPath [ | ||
(self itemAtPath: aPath) ifNotNil:[ :aNode | | ||
aNode toggle. | ||
self tableRefresh ] | ||
] |
22 changes: 22 additions & 0 deletions
22
src/NewTools-ScopesBrowser/SpTreeTablePresenter.extension.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 @@ | ||
Extension { #name : 'SpTreeTablePresenter' } | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
SpTreeTablePresenter >> collapseSelectedItems [ | ||
self selection selectedPaths do: [ :path | self collapsePath: path ] | ||
] | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
SpTreeTablePresenter >> expandSelectedItems [ | ||
self selection selectedPaths do: [ :path | self expandPath: path ] | ||
] | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
SpTreeTablePresenter >> togglePath: aPath [ | ||
self withAdapterPerformOrDefer: [ :anAdapter | | ||
anAdapter togglePath: aPath ] | ||
] | ||
|
||
{ #category : '*NewTools-ScopesBrowser' } | ||
SpTreeTablePresenter >> toggleSelectedItems [ | ||
self selection selectedPaths do: [ :path | self togglePath: path ] | ||
] |