才开始接触RCP,在通过向导创建Rcp插件项目后,通过向导添加了Actionsets,可是运行的时候并没有菜单栏出现,eclipse 4.3,求大神解答!
在ApplicationWorkbenchWindowAdvisor中设置了
configurer.setShowMenuBar(true);
configurer.setShowCoolBar(true);
plugin如下
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="com.tomgu.myrcp.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="RCP Perspective"
class="com.tomgu.myrcp.Perspective"
id="MyRcp.perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="MyRcp.actionSet"
label="Sample Action Set"
visible="true">
<menu
id="sampleMenu"
label="Sample &Menu">
<separator
name="sampleGroup">
</separator>
</menu>
<action
class="myrcp.actions.SampleAction"
icon="icons/sample.gif"
id="myrcp.actions.SampleAction"
label="&Sample Action"
menubarPath="sampleMenu/sampleGroup"
toolbarPath="sampleGroup"
tooltip="Hello, Eclipse world">
</action>
</actionSet>
</extension>
</plugin>