Skip to content

Commit

Permalink
... and fix context menus for text
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Sep 20, 2024
1 parent 65d14e7 commit 05f049e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Spec2-Adapters-Morphic/SpMorphicTextAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ SpMorphicTextAdapter >> codePaneMenu: aMenu shifted: shifted [

menuPresenter := self presenter newMenu.
menuPresenter fillWith: actionGroup.

"apply context menu if there is one"
self presenter contextMenu ifNotNil: [ :aContextMenu |
self presenter actions ifNotNil: [
Error signal: 'You are using contextMenu: and actions: at the same time. Both mechanisms are mutually exclusive.' ].
menuPresenter := aContextMenu ].

^ SpBindings
value: self model application adapterBindings
Expand Down

0 comments on commit 05f049e

Please sign in to comment.