Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #240 - command could fail if dialog canceled
- Loading branch information
Showing
6 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/PharoLauncher-Core.package/PhLCommand.class/instance/executeCommand.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
action | ||
executeCommand | ||
[ self execute ] | ||
on: PhLCommandCancellation | ||
do: [ :ex | "Do nothing - user has cancelled the command" ]. |
2 changes: 1 addition & 1 deletion
2
src/PharoLauncher-Core.package/PhLCommand.class/instance/executeIfApplicable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
action | ||
executeIfApplicable | ||
self isApplicable ifTrue: [ | ||
self validateModelIntegrity ifTrue: [self execute ]] | ||
self validateModelIntegrity ifTrue: [self executeCommand ]] |
1 change: 1 addition & 0 deletions
1
src/PharoLauncher-Core.package/PhLCommandCancellation.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Get notified if a user canceled an operation do not run following operations if any |
11 changes: 11 additions & 0 deletions
11
src/PharoLauncher-Core.package/PhLCommandCancellation.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "ChristopheDemarey 9/12/2018 12:27", | ||
"super" : "Notification", | ||
"category" : "PharoLauncher-Core-Model", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "PhLCommandCancellation", | ||
"type" : "normal" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters