I want to generate custom methods in Eclipse like the way we can generate toString, getters and settlers (right click -> source ->). Could anyone tell me what is involved in doing this?
Thanks,
Dutch
I want to generate custom methods in Eclipse like the way we can generate
Share
You could add your own action after the recent (Eclipse Galileo 3.5) generate
toString()action,menu:org.eclipse.jdt.ui.source.menu?after=additionsorg.eclipse.jdt.ui.edit.text.java.generate.tostringGenerateToStringAction(packageorg.eclipse.jdt.ui.actions)I cannot find the source of that class on the internet, so I will copy it here for you to examine its content: