-->

Eclipse RCP 4 draggable Toolbar

2019-06-07 22:07发布

问题:

Is it possible to create a pure Eclipse RCP 4 application, that uses the nice toolbar from the Eclipse IDE with Drag and Drop functionality?

Starting with a fresh installation of Eclipse for RCP 4.5.1, I created a pure e4 application with sample content using the wizrad.

It contains two toolbars, but D&D functionality is missing. So what to do next?

回答1:

There was Drag and Drop functionality in Eclipse 3.x (locking / unlocking toolbar) But with Eclipse 4.x its not working.

You can see bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=409633 There is change in CoolBarToTrimManager.java which is internal class.

You can add Draggable tag for toolbar in application.e4xmi, then it will make the toolbar draggable