Alaa M.
Alaa M.

Reputation: 5273

How to edit an eclipse plugin?

An eclipse plugin called JDTCommentsV2_1.0.9 does the following in eclipse:

http://i90.photobucket.com/albums/k274/alaa_137/eclipse_zps8fbc1a0b.png

I'm trying to add/edit some comments inside. e.g. add Run TestComment or just change one of the comments' name.

I have the .jar file and here's how it looks inside:

enter image description here

Question is which files should i edit and how.

Thank you

edit: After following @greg449 and @Robin Green's instructions, I exported the jar file to eclipse, and edited the plugins.xml file. But if i export the files now as a jar, it doesn't work (nothing is changed in the menu). Finally i tried what @Robin Green said (Run -> Run As -> eclipse application) but there is no eclipse application under Run As. I got only Java Applet and Java Application. I'm wondering why. Might it be because i'm using ADT?

edit2: I downloaded another version of eclipse (not ADT) and here i do have the Run As eclipse application bar". Can't i add it to ADT ?

edit3: The picked answer works for eclipse JDT and not eclipse ADT.

Upvotes: 1

Views: 313

Answers (2)

greg-449
greg-449

Reputation: 111218

It looks like you have a jar containing an existing Eclipse plugin so in your Eclipse you do File > Import and choose General > Existing Projects into Workspace and select the jar as the source.

Once you have the plugin project installed in your workspace you are going to have to work out how the plugin works by looking at the source and the plugin.xml.

Once you have modified the plugin use Export > Plug-in Development > Deployable plug-ins and fragments to build a new plugin jar.

Upvotes: 1

Robin Green
Robin Green

Reputation: 33083

Generally speaking you check out the source code from its source control repository or download it as an archive file from its website and then import it into Eclipse, same as any other project.

Upvotes: 0

Related Questions