In right click menu have Source-> generate Getters and Setters
.On selecting the option, the user can select the variables for which getter and setter need to be generated.
I want something similar.
Source-> generate increment code.
User can select the variable names from a list populated from his class attributes.
the generated method will look like
private Integer abc;
public void incrementAbc(){
abc++;
}
I was thinking of extending the popupmenu plugin to create the options in the menus. But how do I make the code to be autogenerated on selection by user. Is using fast code template the answer. I new to plugins and I am confused. PLease do help.