Community
Participate
Working Groups
If I start typing in a new method declaration, and press Ctrl-Space mid way, JDT can *INTELLIGENTLY* suggest some things that it does not currently do. For example, if I have a "protected int length;" data member, and I type in "public int get" and press Ctrl-Space, it should suggest a getter method for length (as well as all other int members for which one does not already exist). Actually, it would also be nice if the body of the method was generated as well if it's a getter/setter (I know this can be done with templates, but it's a bit less counter- intuitive). Among other suggestions it should probably offer is matching non-final method form the superclass that you can override, etc.
Code assist already offers proposals for methods that can be overridden. Try: public class Bar { <code assist> } I like the proposal for method name completions for getters/setters. This would have to work for the different instance variable prefix conventions (fLength, m_length etc.). Moving to JDT Core for comment.
For getter/setter, we should offer field completions on method declarations as well, so that UI could jump in and insert a getter/setter method ?
Unsure we want to follow this path.
Defer
Reopen
This feature exists in 3.3. Fixed in a previous build.