Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Is order of application main toolbar elements restorable(Is order of application main toolbar elements restorable)
Is order of application main toolbar elements restorable [message #1822905] Mon, 16 March 2020 10:46 Go to next message
Eclipse UserFriend
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?
Re: Is order of application main toolbar elements restorable [message #1822982 is a reply to message #1822905] Tue, 17 March 2020 11:55 Go to previous messageGo to next message
Eclipse UserFriend
A quite useless answer for you, unless you have some time to investigate: The way to get the order restored is fixing bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=414611
Re: Is order of application main toolbar elements restorable [message #1823069 is a reply to message #1822982] Thu, 19 March 2020 02:58 Go to previous message
Eclipse UserFriend
Thanks for the info and the link to the bug report.

As a workaround I removed the contributions made in the ActionBarAdvisor-Implementation and placed them into a plugin.xml. So now all the buttons come from different plugin.xml's and the order is saved and restored as wanted.
Previous Topic: Performance problems with large layouts in RCP application
Next Topic:export failure
Goto Forum:
  


Current Time: Wed May 07 04:39:42 EDT 2025

Powered by FUDForum. Page generated in 0.25551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top