Eclipse Plugin Editor

I want to create an editor in eclipse (as an eclipse plugin), for a java class that implements some of the interfaces I created. The editor will allow the user to edit some information (using the form), which will be placed in the java class. - I like it very much in the EJB editor. I want java files that implement this interface to open an editor.

  • How to replace values ​​in a class without the need to regenerate it (since the user could edit part of the source code in the class)?
  • How to link an editor to open only some java files?

Thanks.

+4
source share
2 answers

Use JDT to access the java class and change some of its contents using the AST of the java class.

Perhaps this article will help you.

+2
source

1) I suggest you familiarize yourself with the Eclipse documentation in detail, since I don’t think it would be trivial. 2) I suppose that Eclipse has a mime type association API, so you just use this.

+1
source

All Articles