Is order of application main toolbar elements restorable [message #1822905] |
Mon, 16 March 2020 10:46  |
Eclipse User |
|
|
|
I have a question concerning the order of elements in the main toolbar/coolbar of an RCP application that is running in E3/E4-mixed mode. Currently 4.5 is used as a target platform but we also have the problem with newer versions like 4.12.
We are adding elements by using an ActionBarAdvisor as well as using the application model. After startup the application model elements/action are shown first and the ones from the ActionBarAdvisor-implementation (like save, save all, print etc.) follow.
When the order is changed by the user it doesn't seem to be persisted on shutdown and/or restored on startup. That means that after the application startup the elements are again ordered as described (first model elements, then the ones from ActionBarAdvisor). The clearPersistendState-parameter is not set.
A comment in WorkbenchWindow.populateTopTrimContributions() also describes this behaviour.
First I thought saveState() oder restoreState() from ActionBarAdvisor could be used but they were never called. Is there a way to bring the application to restore the order that was set at shutdown?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04049 seconds