2

2 つの異なる 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 ...

誰が何が間違っているのか考えていますか?

4

1 に答える 1