Skip to content

Commit

Permalink
Add inspect instance button to unique instance trait
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Nov 29, 2024
1 parent 388440a commit 585a319
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/GToolkit-Utility-Basic/TGtUniqueInstance.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ TGtUniqueInstance classSide >> default [
^ self uniqueInstance
]

{ #category : #'as yet unclassified' }
TGtUniqueInstance classSide >> gtInstanceButtonFor: anAction [
<gtClassAction>
^ anAction button
tooltip: 'Inspect unique instance';
priority: 10;
icon: BrGlamorousVectorIcons playinspect;
action: [ :aButton | aButton phlow spawnObject: self uniqueInstance]
]

{ #category : #testing }
TGtUniqueInstance classSide >> hasUniqueInstance [

Expand Down

0 comments on commit 585a319

Please sign in to comment.