简体   繁体   中英

How to install a Plug-in project to my Eclipse? (Version: Luna Service Release 2 (4.4.2))

I have generated a demo popup menu plugin project automatically by Eclipse. Here is the project structure,

在此处输入图片说明

I have set a objectContribution to the point org.eclipse.ui.popupMenus,

在此处输入图片说明

When I right click the project and choose Run as -> Eclipse Application, another Eclipse process run and I can see the configured menu works well,

在此处输入图片说明

How can I install this plugin for my original Eclipse process?

What I have tried

I did some research and tried to Export -> Deployable plug-ins and fragments , then put it into the %EclipseFolder%/plugins , but it didn't work. I also have tried to Export -> Deployable features and installed it by Help->Install New Software , also failed to see the menu when right click the project.

Will you please help? BTW, I would like to know how to contribute a menu which will display when I right click on a package in a project? Thanks so much.

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, ie the Eclipse IDE that you are currently working with. I think a restart may be required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM