【发布时间】:2013-10-08 15:27:24
【问题描述】:
我正在尝试从两个不同的 plugin.xml 文件中为同一个自定义工具栏做出贡献。不幸的是,我找不到指定按钮出现顺序的方法。应该是最后一个的按钮会显示为第一个按钮。
我已经尝试使用指定插入位置
...
MenuManager manager = new MenuManager(null, "my.toolbar.id");
IMenuService menuService = (IMenuService) getEditorSite().getService( IMenuService.class);
manager.add(new GroupMarker("testing"));
menuService.populateContributionManager(manager, "toolbar:my.toolbar.id?after=testing");
...
在plugin.xml中
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="toolbar:my.toolbar.id?after=testing">
<toolbar id="my.toolbar.id">
<command ...
有人知道可能出了什么问题吗?
【问题讨论】:
标签: eclipse toolbar eclipse-kepler