File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ Class {
1616 ' buttonSelectors' ,
1717 ' objectDescription' ,
1818 ' completionControllerClass' ,
19- ' completionStrategy'
19+ ' completionStrategy' ,
20+ ' toolbar'
2021 ],
2122 #category : #' Magritte-GToolkit'
2223}
@@ -268,7 +269,9 @@ MAElementBuilder >> textUsing: aDescription [
268269
269270{ #category : #accessing }
270271MAElementBuilder >> toolbar [
271- | toolbar |
272+
273+ toolbar ifNotNil: [ ^ toolbar ].
274+
272275 toolbar := BrToolbar new
273276 aptitude: BrToolbarAptitude new ;
274277 layout:
Original file line number Diff line number Diff line change @@ -59,7 +59,17 @@ Object >> maGtFormFor: aView [
5959 ^ aView explicit
6060 title: ' Magritte' ;
6161 priority: 50 ;
62- stencil: [ ((description elementBuilderFor: self ) addButtons; element) asScrollableElement ];
62+ stencil: [
63+ | builder |
64+ builder := description elementBuilderFor: self .
65+ builder addButtons.
66+ builder toolbar children do: [ :button |
67+ | currentAction |
68+ currentAction := button action.
69+ button action: [
70+ currentAction value.
71+ button phlow firstParentWithViewContent phlow update ] ].
72+ builder element asScrollableElement. ];
6373 actionButtonIcon: BrGlamorousVectorIcons inspect
6474 label: ' Memento'
6575 tooltip: ' Inspect Memento'
You can’t perform that action at this time.
0 commit comments