我在 Eclipse RCP 3.x 上有一个应用程序,并尝试通过 plugin.xml 添加一个主工具栏。
运行应用程序后我看不到它,工具栏不可见。我不明白代码中有什么问题。
<menuContribution
allPopups="false"
locationURI="toolbar:org.eclipse.ui.main.toolbar">
<toolbar
id="rcp.toolbar1">
<command
commandId="org.eclipse.ui.file.save"
label="Save"
style="push">
</command>
<command
commandId="org.eclipse.ui.file.saveAll"
id="rcp.menu.file.saveall"
label="Save All"
style="push">
</command>
</toolbar>
</menuContribution>