From 8f57563ed40c4caace72330e0981c077ed930afe Mon Sep 17 00:00:00 2001 From: Guille Polito Date: Wed, 6 Nov 2024 12:15:25 +0100 Subject: [PATCH] cleanup(morphic-deps): Explicit morphic/uimanager dependencies --- src/NewTools-Core/StProtocolNameChooserPresenter.class.st | 2 +- .../StHaltInspectionItem.class.st | 5 +++-- src/NewTools-FileBrowser/StRootDriveWrapper.class.st | 2 +- src/NewTools-Finder/StFinderExampleSearch.class.st | 4 ++-- .../CompiledMethod.extension.st | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/NewTools-Core/StProtocolNameChooserPresenter.class.st b/src/NewTools-Core/StProtocolNameChooserPresenter.class.st index 8d3c8fd88..db335c752 100644 --- a/src/NewTools-Core/StProtocolNameChooserPresenter.class.st +++ b/src/NewTools-Core/StProtocolNameChooserPresenter.class.st @@ -69,7 +69,7 @@ StProtocolNameChooserPresenter class >> requestProtocolNameConfiguring: aBlock [ protocolName isEmptyOrNil ifTrue: [ CmCommandAborted signal ]. (protocolName beginsWith: '*') ifTrue: [ - self inform: 'Star is forbidden for protocol name since this is used for method extensions.'. + UIManager default inform: 'Star is forbidden for protocol name since this is used for method extensions.'. ^ CmCommandAborted signal ]. ^ protocolName ] diff --git a/src/NewTools-Debugger-Breakpoints-Tools/StHaltInspectionItem.class.st b/src/NewTools-Debugger-Breakpoints-Tools/StHaltInspectionItem.class.st index d628d2f5c..497871e89 100644 --- a/src/NewTools-Debugger-Breakpoints-Tools/StHaltInspectionItem.class.st +++ b/src/NewTools-Debugger-Breakpoints-Tools/StHaltInspectionItem.class.st @@ -99,8 +99,9 @@ StHaltInspectionItem >> printScope [ ] { #category : 'updating' } -StHaltInspectionItem >> removeInPresenterContext: aStObjectBreakpointInspection [ - self inform: 'Edit your code to remove halts' +StHaltInspectionItem >> removeInPresenterContext: aStObjectBreakpointInspection [ + + UIManager default inform: 'Edit your code to remove halts' ] { #category : 'accessing' } diff --git a/src/NewTools-FileBrowser/StRootDriveWrapper.class.st b/src/NewTools-FileBrowser/StRootDriveWrapper.class.st index 6a1e88244..61e35853e 100644 --- a/src/NewTools-FileBrowser/StRootDriveWrapper.class.st +++ b/src/NewTools-FileBrowser/StRootDriveWrapper.class.st @@ -22,7 +22,7 @@ StRootDriveWrapper >> directories [ ^ [ (fileReference basename , '\') asFileReference directories ] on: FileSystemError do: [ - self inform: 'Missing permissions on ' , fileReference basename. + UIManager default inform: 'Missing permissions on ' , fileReference basename. #( ) ] ] diff --git a/src/NewTools-Finder/StFinderExampleSearch.class.st b/src/NewTools-Finder/StFinderExampleSearch.class.st index 8b69da43f..ec7f3d405 100644 --- a/src/NewTools-Finder/StFinderExampleSearch.class.st +++ b/src/NewTools-Finder/StFinderExampleSearch.class.st @@ -47,11 +47,11 @@ StFinderExampleSearch >> computeDataObjects: aString [ dataObjects do: [ : e | e evaluateWithTimeOut: self evaluationTimeout ] ] on: CodeError , RuntimeSyntaxError do: [ :e | - self inform: 'Error: ' , e messageText. + UIManager default inform: 'Error: ' , e messageText. ^ #( ) ] . dataObjects size < 2 ifFalse: [ ^ dataObjects ]. - self inform: + UIManager default inform: 'If you are giving an example of receiver, \args, and result, please put periods between the parts.\Otherwise just type one selector fragment' withCRs. ^ #( ) diff --git a/src/NewTools-Inspector-Extensions/CompiledMethod.extension.st b/src/NewTools-Inspector-Extensions/CompiledMethod.extension.st index 7fdcea73d..1cd8b8125 100644 --- a/src/NewTools-Inspector-Extensions/CompiledMethod.extension.st +++ b/src/NewTools-Inspector-Extensions/CompiledMethod.extension.st @@ -29,7 +29,7 @@ CompiledMethod >> inspectionSource [ action: [ self methodClass browse ] ] ]; whenSubmitDo: [ :text | self isInstalled - ifFalse: [ self inform: 'can not edit methods that are not installed' ] + ifFalse: [ UIManager default inform: 'can not edit methods that are not installed' ] ifTrue: [ self methodClass compile: text ] ]; yourself ]