原来的文章写得比较复杂,其实现在eclipse 3.3中有更简单的办法
<extension
id="rmp.idc.dr.Perspective"
point="org.eclipse.ui.perspectives">
<perspective
class="xxx.Perspective"
icon="icons/releng_gears.gif"
id="xxx.Perspective"
name="xxx管理">
</perspective>
</extension>
<!--此处定义与该透视图相关联的菜单
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="xxx.Perspective">
<actionSet
id="xxx.gui.eee">
</actionSet>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="xxx.gui.eee"
label="菜单1"
visible="false">
<menu
id="device"
label="设备[&D]"
path="detail">
<groupMarker
name="new">
</groupMarker>
<separator
name="view">
</separator>
</menu>