Codecompletion for Constructor
Status: Beta
Brought to you by:
bernhardbrem
Codecompletion for constructors works in Java as follows - we should add it to emonic in the same way:
1) Trigger on "new" keyword
If "new" is written (e.g. ArrayList arr = new ) and one presses STRG+SPACE, the type ArrayList (for this example) is automatically added within the same line.
2) Trigger on "()"
Now we have "ArrayList arr = new ArrayList" One adds a "(" which automatically leads to "()" (works in emonic!). Within the parenthesis one uses STRG+SPACE to get all the constructors and inner classes of this type.
Any ideas?
Logged In: YES
user_id=1245734
Originator: NO
1) sounds very good. But could be quite hard to implement since You have to know all possible classes for which You want to offer a constructor (including the inherited and the classes implementing the interface). In the current state of the CodeElement-Tree we don't have this info.....