ceylon/ceylon-ide-eclipse — pull request #314 by sjurba (2012-07-10 22:51:26+00:00)
Title: Implemented #285 quick assist convert then/else to if/else

It works on all the then/else statements in this function:

String? hi() {
Integer i = 1;
Boolean test = true;
String x = "x";
String y = "y";
String? obj = null;
String default = "";

if (i == 0) {
return test then x else y;
} else if (i == 1) {
return test then x;
} else if (i == 2) {
return obj else default;
}

Object o = test then x else y;
Object? o1 = test then default;
Object o2 = obj else default;

variable Object v := test then x else y;
variable Object? v1 := test then default;
variable Object v2 := obj else default;

v := test then x else y;
v1 := test then default;
v2 := obj else default;

return null;
}