Skip to content

Reduced UIManager api #1751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: Pharo13
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/Spec2-Commander2/SpInvalidUserInputError.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Extension { #name : 'SpInvalidUserInputError' }
{ #category : '*Spec2-Commander2' }
SpInvalidUserInputError >> actForSpec [
"Does nothing on purpose."
UIManager default
inform: self messageText.

SpApplication defaultApplication inform: self messageText.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you have a reference to the SpApplication instance?
Because you are not sure the application that triggered SpInvalidUserInputError is the default or not. It is better to avoid the use of globals.
If you don't have it, you could pass it to SpInvalidUserInputError when creating the error.

self flag: #TODO "In the best world, we should delegate the behaviour to the Spec presenter which originated the error."
]
Loading