简体   繁体   中英

How to add a toolbar with a button through e4xmi

I have a task to redesign the toolbar of an eclipse-based application. The previous implementation is based on the e3 plugin.xml extension points.

I saw that the application uses an .e4xmi file to add extensions to the eclipse Menu , therefore I'd like to migrate all the toolbars and added buttons to be extended from the e4xmi file.

How can I create a toolbar and add a button to it from the e4xmi file? I can't find a documentation for migrate a button from e3 to e4 ...

E4 uses more generic TrimBar "representing the trim along a Window's edge" to express ToolBar, StatusBar and so on. Please have a look here to learn more https://www.vogella.com/tutorials/EclipseRCP/article.html#toolbars-toolcontrols-and-drop-down-tool-items

I would give E4 a chance, especially for new things.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM