Skip to content

Commit

Permalink
Add explicit labels for abort and commit actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Mar 27, 2024
1 parent a200b3b commit 66e14af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GToolkit-GemStone-Pharo/GtGemStoneSession.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ GtGemStoneSession >> gtAbortActionFor: anAction [
^(anAction button)
priority: 7;
tooltip: 'GemStone Abort Transaction';
label: 'Abort';
icon: BrGlamorousVectorIcons cancel;
action:
[:button |
Expand Down Expand Up @@ -892,6 +893,7 @@ GtGemStoneSession >> gtCommitActionFor: anAction [
^(anAction button)
priority: 6;
tooltip: 'GemStone Commit Transaction';
label: 'Commit';
icon: BrGlamorousVectorIcons accept;
action:
[:button |
Expand Down
4 changes: 4 additions & 0 deletions src/GToolkit-GemStone-Pharo/GtpoGsNMethod.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ GtpoGsNMethod >> gtAbortActionFor: anAction [
(gtSession isNil or: [ gtSession isRunning not ]) ifTrue: [ ^ anAction noAction ].
^ anAction button
tooltip: 'GemStone Abort Transaction';
label: 'Abort';
icon: BrGlamorousVectorIcons cancel;
priority: 25;
action: [ :button |
gtSession abortTransaction.
button phlow spawnObject: 'Aborted transaction' ]
Expand Down Expand Up @@ -81,7 +83,9 @@ GtpoGsNMethod >> gtCommitActionFor: anAction [
(gtSession isNil or: [ gtSession isRunning not ]) ifTrue: [ ^ anAction noAction ].
^ anAction button
tooltip: 'GemStone Commit Transaction';
label: 'Commit';
icon: BrGlamorousVectorIcons accept;
priority: 20;
action: [ :button |
gtSession commitTransaction.
button phlow spawnObject: 'Successfully committed transaction' ]
Expand Down

0 comments on commit 66e14af

Please sign in to comment.