Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/Spec2-Code/SpCodePresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,16 @@ SpCodePresenter >> doBrowseHierarchy [

{ #category : 'commands' }
SpCodePresenter >> doBrowseImplementors [

| variableOrClassName variable |

variableOrClassName := self selectedSelector ifNil: [ ^ nil ].
variable := self lookupEnvironment lookupVar: variableOrClassName.

"For global and class variables, implementors-of browses the class of the value of the variable,
for classes this means it browses the class"
(variable isNotNil and: [ variable isGlobalVariable or: [ variable isClassVariable ] ])
(variable isNotNil and: [variable isGlobalVariable or: [variable isClassVariable]])
ifTrue: [ self systemNavigation browse: variable value ]
ifFalse: [
(Smalltalk tools toolNamed: #messageList) browseImplementorsOfAll: { variableOrClassName } from: self interactionModel behavior ]
ifFalse: [ self systemNavigation browseAllImplementorsOf: variableOrClassName ]
]

{ #category : 'commands' }
Expand Down
Loading