Community
Participate
Working Groups
Created attachment 262086 [details] toolbar test example The following issue is occurring when using e3 compatibility mode in Eclipse 4.5.2 x64, Java 8 x64, and Windows 7. When starting an RCP application with a brand new runtime workspace, the org.eclipse.ui.trim.command2 toolbar location displays the contribution on the left side of the main toolbar (to the right of the other contributions). If I close, then re-open the application, then the contribution is correctly displayed on the right side of the main toolbar. Attached are a couple snapshots and a simple test driver that displays a red X command contribution. The first run will display the "X" with the contributions on left side of main toolbar, the second run will display the red "X" on the far right of the main toolbar.
New Gerrit change created: https://git.eclipse.org/r/142107
An applied similar solution like Bug 528890. https://git.eclipse.org/r/142107 The basic trimbar controls are being created after the extension contributors are added. So, added in default e4 template to create earlier than creating programmatically in this method. org.eclipse.ui.internal.WorkbenchWindow.populateTopTrimContributions() I feel it's the safest solution. If we really want to do programmatically, We need to fix it here by reordering the toolbar contributions after a new one added. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.fixZOrder(MUIElement) Line 428 to 440
New Gerrit change created: https://git.eclipse.org/r/143871
(In reply to Eclipse Genie from comment #3) > New Gerrit change created: https://git.eclipse.org/r/143871 the other change as per the comment https://bugs.eclipse.org/bugs/show_bug.cgi?id=528890#c27
Andrey, can you do the review for 4.15?
(In reply to Dani Megert from comment #5) > Andrey, can you do the review for 4.15? Thanks for reminder, I forgot this one.
I have no time to reproduce & review the patch https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/143871/, so re-assigning to default. I hope someone can step in.