Bug 35569 - [templates] user templates->possibility to up/downcase of variable content
Summary: [templates] user templates->possibility to up/downcase of variable content
Status: RESOLVED DUPLICATE of bug 12756
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-24 07:55 EST by Markus Fries CLA
Modified: 2004-02-17 04:30 EST (History)
0 users

See Also:


Attachments

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