Skip to content

Commit

Permalink
Merge pull request #988 from Ducasse/CleanToolAPI
Browse files Browse the repository at this point in the history
Cleaning more tools
  • Loading branch information
Ducasse authored Feb 9, 2025
2 parents 4735438 + f1173c1 commit 5452564
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/NewTools-Debugger/StDebugger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ StDebugger >> doBrowseMethodVersions [
| target |
target := self stackSelectionMethodContext.
target isBlock ifTrue: [ target := target method ].
self application versionBrowser
(self application toolNamed: #versionBrowser)
browseVersionsForClass: target methodClass
selector: target selector
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ StFileBrowserChangeListCommand >> execute [
"Execute the actions that should be done by the command.
This method expect that the context has been put in #context inst. var. if any context is relevant."

self application tools changeList openOnStream: self selectedEntry asFileReference readStream
(self application toolNamed: #changeList)
openOnStream: self selectedEntry asFileReference readStream
]

{ #category : 'initialization' }
Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-Finder/StFinderResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ StFinderResult >> browser [
"We should check how to do it via the stApplication but ok for now"


^ application tools browser
^ application toolNamed: #browser
]

{ #category : 'accessing' }
Expand Down Expand Up @@ -248,7 +248,7 @@ StFinderResult >> sendersAction [
StFinderResult >> versionBrowser [
"We should check how to do it via the stApplication but ok for now"

^ application tools versionBrowser
^ application toolNamed: #versionBrowser
]

{ #category : 'action' }
Expand Down
2 changes: 1 addition & 1 deletion src/NewTools-MethodBrowsers/SystemNavigation.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ SystemNavigation >> browseAllUsersOfClassOrTrait: class [
{ #category : '*NewTools-MethodBrowsers' }
SystemNavigation >> browseVersionsOf: aMethod [

self tools versionBrowser browseVersionsForMethod: aMethod
(self tools toolNamed: #versionBrowser) browseVersionsForMethod: aMethod
]
2 changes: 1 addition & 1 deletion src/NewTools-Playground/StPlaygroundPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ StPlaygroundPresenter class >> menuCommandOn: aBuilder [
<worldMenu>
(aBuilder item: #Playground)
parent: #InputOutput;
action: [ self currentApplication tools workspace open ];
action: [ (self currentApplication toolNamed: #workspace) open ];
order: 1;
keyText: 'o, p';
help: 'A window used as a scratchpad area where fragments of Pharo code can be entered, stored, edited, and evaluated.';
Expand Down
2 changes: 1 addition & 1 deletion src/NewTools-Spotter-Extensions/Package.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ Package >> spotterTagsFor: aStep [
{ #category : '*NewTools-Spotter-Extensions' }
Package >> stActDefault [

^ Smalltalk tools browser openOnPackage: self
^ (Smalltalk tools toolNamed: #browser) openOnPackage: self
]
2 changes: 1 addition & 1 deletion src/NewTools-Spotter/StSpotter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ StSpotter class >> isShowingTips [
StSpotter class >> menuCommandOn: aBuilder [
<worldMenu>
(aBuilder item: #Spotter)
action: [ self currentApplication tools spotter open ];
action: [ (self currentApplication toolNamed: #spotter) open ];
keyText: 'Shift + Enter';
order: 1;
parent: #Searching;
Expand Down

0 comments on commit 5452564

Please sign in to comment.