Summary: | EC DCR: Code templates feature (1GIVMDV) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Carolyn MacLeod <carolynmacleod4> |
Component: | UI | Assignee: | Claude Knaus <Claude_Knaus> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Carolyn MacLeod
2001-10-10 23:06:42 EDT
We're getting there. Templates as of now support arguments to avoid typing the same name multiple times. Argument variables are named ${0}, ${1} etc. The corresponding template would be Name: itvec Context: java Description: iterate over vector Pattern: for (int i=0; i<${0}.size(i); i++) { Object item= ${0}.get(i); } and could be called by: itvec(myVector)<CTRL-SPACE> implemented > 204 If there are unresolved variables, a popup editor allows to enter the missing variable names. PRODUCT VERSION: R0.9 |