Entered into IDEA tracker # 1045 http://www.intellij.net/tracker/idea/viewSCR?publicId=1045
When typing
private Collection collection = new |
and pressing Ctrl+Shift+Space (smart type) Idea could display popup with:
- Interface itself
- all derived interfaces
- all classes implementing that interface or derived interface
-- AdaMajorek - 13 Jun 2002
This idea is not as good as it seems to be. First of all, in this case under JDK 1.4 it will show popup with 87 items. If you add more libraries to your project - it will be even more. Is it exactly what you want?
Than this feature must be carefully implemented - don't forget current features of class instantiation, interfaceinstantiation, adapter creation etc.
In fact this feature is not implemented yet because of the single reason: we don't know (yet?) how to make it usefull/simple & comfortable to use without breaking the existing behaviour.
-- MikeAizatsky - 13 Jun 2002
Maybe this would be the good compromise?
Initial suggestion
and after selecting [more...]
| Collection |
| List |
| Set |
| SortedSet |
| AbstractCollection |
| UnmodifableCollection |
| SynhronizedCollection |
| ... |
In cases where there are a lot of derrived types (ex. Object, Serializable, Cloneable, etc.) pressing [more...] might add only limited number of tpes to the list. Let's say not more than 100 more types and [more...] if there are more types.
Order of types: interfaces then classes - preferably in breadth-first order - children, grand-children, grand-grand-children ....
-- AdaMajorek - 19 Jun 2002
|
|