1
扩展--》添加--》actionSets--》hello world 模板 --》更改一些
2
完成的extends 扩展
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="org.salever.rcp.tech.chapter3.ex.actionSet"
label="Sample Action Set"
visible="true">
<menu
id="sampleMenu"
label="Sample &Menu">
<separator
name="sampleGroup">
</separator>
</menu>
<action
class="org.salever.rcp.tech.chapter3.ex.actions.SampleAction"
icon="icons/sample.gif"
id="org.salever.rcp.tech.chapter3.ex.actions.SampleAction"
label="&Sample Action"
menubarPath="sampleMenu/sampleGroup"
toolbarPath="sampleGroup"
tooltip="Hello, Eclipse world">
</action>
</actionSet>
</extension>
3 此时新建了一个类
4 结果图