Bug 35569

Summary: [templates] user templates->possibility to up/downcase of variable content
Product: [Eclipse Project] JDT Reporter: Markus Fries <markus.fries>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P4    
Version: 2.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Fries CLA 2003-03-24 07:55:55 EST
Hello

A "radio button" template could looke like this:
--- start
private boolean ${name1} = true;
private boolean ${name2} = false;

public void set${name1}() {
    ${name1} = true;
    ${name2} = false;    
}

public void set${name2}() {
    ${name2} = true;
    ${name1} = false;    
}
end ---
The method names still need to be fixed (setfoo -> setFoo) then. It would be 
cool if there was s.th. like "set${Name1}" or "set$upcase{name1}".

Thanx, Eclipse is really great! 
Markus Fries
Comment 1 Tom Hofmann CLA 2004-02-17 04:30:25 EST

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