Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:46 Go to next message
Markus Seifert is currently offline Markus SeifertFriend
Messages: 2
Registered: March 2020
Location: Germany
Junior Member
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 15:55 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
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 06:58 Go to previous message
Markus Seifert is currently offline Markus SeifertFriend
Messages: 2
Registered: March 2020
Location: Germany
Junior Member
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: Thu Apr 25 11:24:12 GMT 2024

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

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

Back to the top