Bug 414611

Summary: [Contributions] Toolbar order is not restored after restart (org.eclipse.ui.menus toolbar)
Product: [Eclipse Project] Platform Reporter: Robin Stocker <robin>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt, f.andolfi, pwebster, rolf.theunissen
Version: 4.3   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=459231
Whiteboard:
Bug Depends on:    
Bug Blocks: 414612    
Attachments:
Description Flags
plugin with toolbar showing the problem none

Description Robin Stocker CLA 2013-08-07 16:51:05 EDT
Created attachment 234171 [details]
plugin with toolbar showing the problem

The position of a toolbar defined using org.eclipse.ui.menus (under main toolbar) is not persisted/restored correctly - after a restart, the position is reset.

1. Import the attached example plugin
2. Run it as an application with a new workspace
3. Notice the toolbar with a single button with a [+] icon
4. Move this toolbar to another position (e.g. 1 to the right)
5. Exit the application
6. Run it again with the same workspace

Expected: The position is correctly restored
Actual: The position is the same as in step 3
Comment 1 Robin Stocker CLA 2013-08-12 14:50:52 EDT
I guess nobody has migrated away from the deprecated actionSets extension point yet? Could this be fixed for 4.3.1?
Comment 2 Paul Webster CLA 2013-08-12 15:11:16 EDT
(In reply to comment #1)
> I guess nobody has migrated away from the deprecated actionSets extension
> point yet?

Half of contributors use commands, and half still use actionSets.

> Could this be fixed for 4.3.1?

Probably not.  My guess is it's related to the fact the ContributionRecords are removed on the disposal of the MMenu as they're re-applied on startup (similar to the IMenuService populateContributionManager(*)/releaseContributions(*))

PW
Comment 3 Rolf Theunissen CLA 2019-07-22 16:36:15 EDT
*** Bug 438765 has been marked as a duplicate of this bug. ***
Comment 4 Rolf Theunissen CLA 2019-07-22 16:43:35 EDT
Bug 459231 is more or less the exact opposite of this bug, toolbars are not moved to their original position on the reset of a perspective.
Comment 5 Rolf Theunissen CLA 2020-11-23 13:43:48 EST
*** Bug 569015 has been marked as a duplicate of this bug. ***