Bug 106615 - [quick assist] Add convert ternary operator inside method call
Summary: [quick assist] Add convert ternary operator inside method call
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 08:50 EDT by Andrey Loskutov CLA
Modified: 2009-01-23 11:33 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 Andrey Loskutov CLA 2005-08-10 08:50:34 EDT
Hi! I like the way the quick assist converts ternary operator to if/else and 
vice versa (see bug 71244 comment 19). Unfortunately this quick assist does not 
work for such code:

boolean ok = true;
...
doSomething(ok? "ok" : "nok");

I would like that quick assist transform it to:
if(ok){
  doSomething("ok");
} else {
  doSomething("nok");
}

Probably this could be added with 3.2 release?
Thanks!