I watched the question about Eclipse -> Java -> Templates and how to create template to decrease code time development but I couldn't find how to:
- generate template on Java class created
- generate the template for some special Java classes which extend
javax.swing.JPanel
for example how to generate code like :
public class AClass extends JPanel {
public AClass(){this.aMethod();}
private void aMethod(){}
}
...on Java class created?
EDIT : I try to invoke template code generation on new java source file created (see image)
I tried to edit the preferences -> Java -> code templates constructor body (see image) but I am not sure how to insert method invoke into constructor body :(
I tried to input this.aMethod();
into the edit text area but this doesn't generate constructor body as : public AClass(){this.aMethod();}