Bug 14601

Summary: Templates wizard
Product: [Eclipse Project] JDT Reporter: Xavier Méhaut <xmehaut>
Component: UIAssignee: Claude Knaus <Claude_Knaus>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P4    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Xavier Méhaut CLA 2002-04-25 09:05:00 EDT
Hello,
Up to now the template feature proposes to the user to have variables in the 
template (see for instance the while template). It could be very nice to 
propose to the user a wizard window when applying a template with variables . 
This wizard would be used to enter the variable values (for instance in the 
above example iterator name and type name). Why is it useful? If you want to 
create your own template (for instance a template to create directly accessing 
methods for list instance variable ; it should create the addItem, removeItem, 
insertItemBefore, and so on...) it can be interesting to enter values in dialog 
box. 
Regards
Xavier
Comment 1 Xavier Méhaut CLA 2002-04-25 09:20:48 EDT
another enhancement could be also to be able to give an expression which could 
be evaluated when generating the code of the template. For instance i want to 
generate the following :
addElement(Object anElement) {
   elements.add(anElement);
}

in this exemple, I would like to enter "element" and I could generate all the 
stuff!!! I think finally it is more useful than my previous remark ;-)
Comment 2 Claude Knaus CLA 2002-04-26 10:55:35 EDT

*** This bug has been marked as a duplicate of 12756 ***