Bug 106615

Summary: [quick assist] Add convert ternary operator inside method call
Product: [Eclipse Project] JDT Reporter: Andrey Loskutov <loskutov>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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!