Eclipse RCP 4 draggable Toolbar

拥有回忆 提交于 2019-12-08 06:49:36

问题


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



来源:https://stackoverflow.com/questions/34855658/eclipse-rcp-4-draggable-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!