Sunday, 15 January 2012

java - How does Eclipse generate code? Like Getters and Setters -



java - How does Eclipse generate code? Like Getters and Setters -

i working on project generate code in eclipse. found codemodel can generate java code me, how integrate plug-in?

how eclipse generate code? getters , setters?

my overall goal generate own code in eclipse. there api out there use?

you can utilize eclipse jdt libraries doing code parsing , modifications.

if trying utilize same in eclipse plugin project, have add together org.eclipse.jdt.core plugin dependencies (in plugin.xml file).

check below posts more info on parsing java code , saving changes code.

eclipse create compilationunit .java file

saving modified ast in new file eclipse plugin

java eclipse eclipse-plugin eclipse-rcp code-generation

No comments:

Post a Comment