XGouchet
XGouchet

Reputation: 10203

Eclipse Plugin : how to modify a file source programatically?

I'm trying to build my first Eclipse Plugin (under Indigo). I created a Popup Menu, and I manage to get the selected File path.

My aim is to add a member and a method via the plugin, inside the class definition.

Should I parse the file myself or is there a better way to do this?

Upvotes: 3

Views: 1421

Answers (1)

Tom Seidel
Tom Seidel

Reputation: 9535

See the eclipse help how to manipulate Java files with the JDT --> http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_manip.htm

Upvotes: 3

Related Questions