|Force Top-level Coolbar Layout [message #1225765]
||Mon, 30 December 2013 13:39
| Ed Schwarz
Registered: December 2013
I have a plugin-defined Product which does not (currently) define its own Application class (i.e. no custom implementation of IApplication). I am using some dynamic drop-down items in the main toolbar, defined in plugin.xml. I am building the Product using the Eclipse 4.3 (Kepler) platform.|
At runtime, I would like the toolbar items to show which of the drop-down items are currently selected. For generic items, I use an icon, but for non-generic items I would like to show some identifying text. The identifying text is not always of the same length.
I am using an IElementUpdater to update the drop-down items and also the toolbar drop-down item. The coolbar/toolbar/trimbar does not re-layout; if the new text is too long, or I switch from text to icon, the toolbar re-renders and is empty - not even the drop-down arrow appears. My test team reports that the Drop-down tool item "disappears", which is a pretty good description of the experience.
Is there any way to force the main toolbar/coolbar/trimbar complex re-layout?
I have done some research and it seems that I might be able to do this by defining my own IApplication implementation and capturing the Coolbar/Toolbar manager using an ActionBarAdvisor subclass for later calls to layout(). This is a pretty heavyweight solution - is there any other?
[Updated on: Mon, 30 December 2013 18:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01903 seconds