我添加到我的eclipse插件弹出菜单中,如果我只想要弹出文件它可以工作,但如果我想弹出包浏览器中的项目它不能正常工作
<objectContribution
id="com.dal.pedal.popupMenu"
objectClass="org.eclipse.core.resources.IProject">
<action
class="com.dal.pedal.popup.actions.upgradeApplet"
id="com.dal.pedal.upgradeApplet"
label="UpgradeApplet"
menubarPath="com.dal.pedal.setActive">
</action>
</objectContribution>
谢谢,
答案 0 :(得分:0)
尝试这样的事情。
<viewerContribution
id="com.sample"
targetID="org.eclipse.jdt.ui.PackageExplorer">
<action
class="com.dal.pedal.popup.actions.upgradeApplet"
id="com.dal.pedal.upgradeApplet"
label="UpgradeApplet"
menubarPath="com.dal.pedal.setActive">
</action>
</viewerContribution>
....
如需更多帮助,请参阅this