Bug 14601 - Templates wizard
Summary: Templates wizard
Status: RESOLVED DUPLICATE of bug 12756
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-25 09:05 EDT by Xavier Méhaut CLA
Modified: 2002-04-26 10:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***