Skip to content

Commit

Permalink
operations working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
carolahp committed Oct 29, 2023
1 parent 87aa7bb commit edf9ba7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/NewTools-Scopes-Browser/ScopeNode.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ ScopeNode >> isScopeNode [

{ #category : 'accessing' }
ScopeNode >> label [
^ self value name

^ self value name , ' [package: ' , self value package name , ']'
]

{ #category : 'accessing' }
Expand Down
2 changes: 1 addition & 1 deletion src/NewTools-Scopes-Browser/ScopeScopeNode.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ScopeScopeNode >> children [

| fullPackages orphanClasses packageChildren classChildren clss |
clss := self value classes.
self halt.

fullPackages := ScopesManager fullPackagesFrom: clss.
orphanClasses := ScopesManager
orphanClassesIn: clss
Expand Down
7 changes: 6 additions & 1 deletion src/NewTools-Scopes-Browser/ScopesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ ScopesPresenter >> argumentsListMenu [
name: 'Rename';
visibleIf: [ scopesTree selectedItem isScopeNode ];
action: [ self renameSelectedScope ] ];
addItem: [ :anItem |
anItem
name: 'Inspect';
action: [ scopesTree selectedItem inspect ] ];
addItem: [ :anItem |
anItem
name: 'Open on Calypso';
Expand All @@ -112,7 +116,8 @@ ScopesPresenter >> argumentsListMenu [
anItem
name: 'Class references';
visibleIf: [ scopesTree selectedItem isClassNode ];
action: [ self showReferencesToClass: scopesTree selectedItem value] ] ];
action: [
self showReferencesToClass: scopesTree selectedItem value ] ] ];
addGroup: [ :aGroup |
aGroup
addItem: [ :anItem |
Expand Down
5 changes: 0 additions & 5 deletions src/NewTools-Scopes/ScopesManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ ScopesManager class >> newScopeFrom: scopeA and: scopeB [
^ self newScopeFrom: fullPackages , classesInterAB
]

{ #category : 'operations' }
ScopesManager class >> newScopeFrom: scopeA or: scopeB [
^ scopeA | scopeB
]

{ #category : 'operations' }
ScopesManager class >> newScopeFromNot: scope [

Expand Down

0 comments on commit edf9ba7

Please sign in to comment.