如何在我的Eclipse中安装插件项目? (版本:Luna Service Release 2(4.4.2))

时间:2015-11-12 08:45:34

标签: java eclipse eclipse-plugin

我已经自动生成了一个演示弹出菜单插件项目。这是项目结构,

enter image description here

我已经将objectContribution设置为org.eclipse.ui.popupMenus,

enter image description here

当我右键单击该项目并选择Run as - > Eclipse Application,另一个Eclipse进程运行,我可以看到配置的菜单运行良好,

enter image description here

如何为原始Eclipse流程安装此插件?

我尝试了什么

我做了一些研究并尝试导出 - >可部署的插件和片段,然后将其放入%EclipseFolder%/plugins,但它不起作用。我也试过导出 - >可部署功能并通过帮助 - >安装新软件进行安装,右键单击项目时也无法看到菜单。

你能帮帮忙吗?顺便说一句,我想知道如何贡献一个菜单,当我右键单击项目中的包时会显示该菜单?非常感谢。

1 个答案:

答案 0 :(得分:0)

Use the Deployable plug-ins and fragments wizard and select Intall into Host on the Destination page.

This will create a p2 repository at the denoted location and install the selected plug-ins from there into the host instance, i.e. the Eclipse IDE that you are currently working with. I think a restart may be required.