Where did you put your refactoring code? Is in under org.eclipse.cdt.ui project that you obtained by cloning the Git repository? Or did you create a separate project? If your not
sure, you can Right-click on your Java file, Properties. In the Resource page, the Path will look like /org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java, as an example. The first part is the project name.
If it's inside a CDT project, since there is already a p2 site defined, you just have to build it using Maven.
Otherwise, if it's in your own project, you can create a p2 update site for your new project. There are multiple ways:
1. First, create a feature that will contain your plugin using File > New > Plug-in Development > Feature project.
2. Open the feature.xml. Under the Plugins tab, click the Add button and add your plugin.
Using Deploy:
3a. With the feature.xml still opened, click on the top-right icon that says "Export as a deployable feature".
4a. Select your feature in the list. Enter a directory where the output will be. Make sure in the Options tab that "Generate a p2 repository" is checked
5a. In your Eclipse, use Help > Install new software. Click Add, Local... then browse for the folder where the p2 update site was generated. Click OK. Make sure the "Group items by category" in unchecked in the bottom if it says "There are no categorized items".
You should see your feature and should be able to install it.
Creating your own update site manually:
3b. Create an update site using File > New > Plug-in Development > Feature project
4b. Click add feature and choose your feature.
5b. Click the Build All button. After completed you should see more files under your update site project (features, plugins, etc).
6b. In your Eclipse, use Help > Install new software. Click Add, Local... then browse for the folder where the p2 update site was generated. Click OK. Make sure the "Group items by category" in unchecked in the bottom if it says "There are no categorized items".
You should see your feature and should be able to install it.
Hope this helps,
Marc-André
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of Krishna Narasimhan [krishna.nm86@xxxxxxxxx]
Sent: Thursday, 23 July 2015 5:52 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Distributing a version of Eclipse CDT IDE with the refactoring installed
Actually, I am not if my refactoring is in the cdt.ui.plugin. How do I check that
I was able to do a File->Export and the plugin came out as a jar. I just tried copying that jar into a newly downloaded version of Eclipse, but that did not help.
Could you please help me with simplifying this process. All I need is an eclipse zipped that runs my plugin. The deadline for the conference is today.