Skip to content

Commit

Permalink
Same fix for warnings: the debugger system was always instantiated tw…
Browse files Browse the repository at this point in the history
…ice.
  • Loading branch information
StevenCostiou committed Oct 8, 2021
1 parent cdbe9b7 commit 3ee7a33
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Debugger-Oups/OupsDebuggerSystem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ OupsDebuggerSystem >> handleWarningDebugRequest: aWarningDebugRequest [
"A WarningDebugRequest has been submitted. Ask what to do to the default UIManager. Typically, the UIManager will call back my #openDebuggerOnRequest: method to open a debugger"

[
self defaultUIManager handleWarningDebugRequest: aWarningDebugRequest ]
self defaultUIManager handleWarningDebugRequest: aWarningDebugRequest fromDebuggerSystem: self]
on: Error
do: [ self signalDebuggerError: aWarningDebugRequest ]
]
Expand Down
4 changes: 2 additions & 2 deletions src/Polymorph-Widgets/MorphicUIManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ MorphicUIManager >> handleError: anError log: shouldLog [
]

{ #category : #'handle debug requests' }
MorphicUIManager >> handleWarningDebugRequest: aWarningDebugRequest [
MorphicUIManager >> handleWarningDebugRequest: aWarningDebugRequest fromDebuggerSystem: anOupsDebuggerSystem [
<debuggerCompleteToSender>
OupsDebuggerSystem new openDebuggerOnRequest: aWarningDebugRequest
anOupsDebuggerSystem openDebuggerOnRequest: aWarningDebugRequest
]

{ #category : #'ui requests' }
Expand Down
2 changes: 1 addition & 1 deletion src/UIManager/CommandLineUIManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ CommandLineUIManager >> handleError: anError log: shouldLog [
]

{ #category : #'handle debug requests' }
CommandLineUIManager >> handleWarningDebugRequest: aWarningDebugRequest [
CommandLineUIManager >> handleWarningDebugRequest: aWarningDebugRequest fromDebuggerSystem: anOupsDebuggerSystem [

self warningDefaultAction: aWarningDebugRequest exception
]
Expand Down
2 changes: 1 addition & 1 deletion src/UIManager/UIManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ UIManager >> handleError: anError log: shouldLog [
]

{ #category : #'debug requests' }
UIManager >> handleWarningDebugRequest: aWarningDebugRequest [
UIManager >> handleWarningDebugRequest: aWarningDebugRequest fromDebuggerSystem: anOupsDebuggerSystem [
"Handle warning notification. Should be overidden by subclass."

self subclassResponsibility
Expand Down

0 comments on commit 3ee7a33

Please sign in to comment.