Community
Participate
Working Groups
e.g. class Ancestor {} class Derivered1 extends Ancestor {} class Derivered2 extends Ancestor {} class Container { Ancestor ancestor; } void f(Container c){ g( c.ancestor/* when pressing ctrl-space here the listbox shoul include 2 entries called "Cast to derivered type >" and "Cast to base type >" selecting one of these should bring up a sub list of classes containing either "Derivered1" and "Derivered2" or "Object" selecting e.g. "Cast to derivered type >"."Derivered1" should transform the line to g( ((Derivered1)c.ancestor) */ ... }
code assist is more doing completions that assisting. Quick assist could help. Will keep in mind, probably not for 3.0
Discussed at the JDT Summit 2006: - agreed that it should not go into code assist - quick assist/fix could be triggered by "(x" and "(x." pattern