Skip to content

Commit

Permalink
[Port]: GT Actions Hook - Move from gtActions to gtActionsInContext: (m…
Browse files Browse the repository at this point in the history
…agritte-metamodel#360)

... where real work seems to happen now
  • Loading branch information
seandenigris authored Aug 6, 2024
1 parent 6d5f022 commit 5925076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Magritte-GToolkit/Object.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Object >> descriptionInspect: aDescription [
]

{ #category : #'*Magritte-GToolkit' }
Object >> gtActions [
Object >> gtActionsInContext: aPhlowContext [
"Hack to extend GToolkit's actions. The GT mechanism is in ProtoObject, which is the only class we miss by hooking in here"
| magritteGToolkitActions |
magritteGToolkitActions := self magritteActions collect: [ :desc | desc gtActionOf: self ].
^ super gtActions, magritteGToolkitActions
^ (super gtActionsInContext: aPhlowContext), magritteGToolkitActions
]

{ #category : #'*Magritte-GToolkit' }
Expand Down

0 comments on commit 5925076

Please sign in to comment.