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
15 changes: 6 additions & 9 deletions src/Spec2-Code/SpCodePresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,14 @@ SpCodePresenter >> doBrowseMethodsMatchingStringSensitive [

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

| variableOrClassName variable |

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

"For global and class variables, sender-of shows intead the using methods"
(variable isNotNil and: [(variable isGlobalVariable or: [variable isClassVariable])])
ifTrue: [ self systemNavigation openBrowserFor: variable name withMethods: variable usingMethods ]
ifFalse: [ self systemNavigation browseAllReferencesTo: variableOrClassName ]


variable := self lookupEnvironment lookupVar: variableOrClassName. "For global and class variables, sender-of shows intead the using methods"
(variable isNotNil and: [ variable isGlobalVariable or: [ variable isClassVariable ] ])
ifTrue: [ self systemNavigation openBrowserFor: variable name withMethods: variable usingMethods ]
ifFalse: [
(Smalltalk tools toolNamed: #messageList) browseSendersOfAll: { variableOrClassName } from: self interactionModel behavior ]
]

{ #category : 'private - bindings' }
Expand Down
Loading