|Dynamic toolbar contributions [message #1752651]
||Wed, 25 January 2017 19:42
| Christian Pontesegger
Registered: July 2009
Location: Graz, Austria
I am playing around with dynamic toolbar contributions using the view model. I am able to dynamically inject an element to a toolbar so far:
element = MMenuFactory.INSTANCE.createHandledToolItem();
The element gets rendered and works as expected.
When rendered, the toolbar does not get updated correctly. Meaning its size is not adjusted and therefore the new item is typically clipped. After resizing/moving the window the toolbar is rendered correctly.
Is there a way to manually trigger size calculation and rendering?
Currently such contributions get stored permanently, so they survive a restart. Is there a way to mark elements as transient, so they do not get persisted in the EMF model?
[Updated on: Wed, 25 January 2017 19:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02995 seconds