Modifying an existing Eclipse plugin and installing it correctly

I downloaded the source code for an EMF based UML2 module and changed the class in the org.eclipse.uml2.uml.edit project to remove special characters when returning string representations. Now when I export projects and place the jar files either in the dropins directory or replace my current uml2 jam plugin files in the plugins directory the UML files are no longer recognized, in short, my modified plugin is not installing correctly (the error is not thrown and I see that the files are picked up under plugins -> Target Platform).

However, when I run the plugin as an eclipse application (from the workspace), I see the changes I have made reflected in the new eclipse instance.

What can I do to ensure that the plugin is installed correctly?

Is there a documented procedure for creating the uml2 plugin (or any comparable plugin) after the change?

0


a source to share


3 answers


Select the project and open the context menu. There is an entry at the bottom of the menu PDE

. There you can find an entry for creating a plugin for deployment. This gives you the capabilities and directories of plugins with fixed files. Copy both to your Eclipse installation.



0


a source


Unless the UML2 plugins require any kind of magic script build, exporting one plugin you modified and overwriting the original in your Eclipse installation should be the easiest solution. One potential problem that comes to mind is conflicting plugin version numbers: make sure you don't have two identical versions of your modified plugin in your Eclipse installation.



When debugging plugins that don't seem to work as expected at runtime, I always look at Help> About Eclipse> Configuration Information. This list lists all the plugins found by Equinox during startup, as well as their status (see the org.osgi.framework.Bundle interface Javadoc for an explanation).

0


a source


I faced the same problem as here. I don't have an answer to your problem, but I am sharing what worked for me.

I created a local plugin update site on my system. To create an update site for your plugin , the article explains very well the steps required to do this.

0


a source







All Articles