0

So I've come across this weird bug in RCP Apps.

I've created a new RCP App with the Mail Template. I've added a new org.eclipse.ui.menus extension with a menuContribution with locationURI:toolbar:org.eclipse.ui.main.toolbar. To that, I've added a command with a little icon.

Now, if I start the app without Clear Workspace in the Debug Configurations, my action appears AFTER the Quick Access text widget. Not only that, but a few other bugs come along (e.g. views aren't closing, too many views are opening at once). This is not a one-time thing, i.e. I have to start the app with Clear Workspace each time.

This method of adding actions on the coolBar is non-deprecated. Why does it behave like a spoiled brat?

Without Clear Workspace: enter image description here


With Clear Workspace: enter image description here

Georgian
  • 8,795
  • 8
  • 46
  • 87
  • Is this a one time thing or do you have to do it every time? – Baz Dec 17 '13 at 15:43
  • @Baz Everytime, unfortunately. – Georgian Dec 17 '13 at 15:45
  • @Baz Frankly I'm really curious how Eclipse's actions are put there in the coolbar, with all the movable toolbars. Somebody explained that to me once, but I swear I don't remember the explanation. – Georgian Dec 17 '13 at 15:50
  • The core actions are added in `WorkbenchActionBuilder` (a subclass of `ActionBarAdvisor`). – greg-449 Dec 17 '13 at 15:53
  • @greg-449 http://stackoverflow.com/questions/19594890/eclipse-kepler-rcp-main-toolbar-actions Oh right, that was you. Anyway, this particular question is part of another scope. – Georgian Dec 17 '13 at 15:56
  • There is a long discussion of the Eclipse forums about this [here](http://www.eclipse.org/forums/index.php/t/366870/) with a bug filed as a result [here](https://bugs.eclipse.org/bugs/show_bug.cgi?id=422651) – greg-449 Dec 17 '13 at 16:05
  • @greg-449 Excellent. Care to post it as an answer? – Baz Dec 17 '13 at 16:07

1 Answers1

3

There is a long discussion on the Eclipse forums about this here with a bug filed as a result here.

The bug is not scheduled to be fixed until Eclipse 4.4M5 but using one of the workarounds to remove the Quick Access control discussed here should help.

Community
  • 1
  • 1
greg-449
  • 109,219
  • 232
  • 102
  • 145