Ctrl-Alt-B: are anonymous implementations interesting?

Hi All,

Do you find it useful to have filtering of implementations to show non-anonymous ones first? Or even don't show them in the first place, but have an option like in goto class?

Eugene.

4 comments
Comment actions Permalink

Anonymous implementation indeed usually are less interesting to me. And sometimes the interesting implementations are hidden by dozens of anonymous implementations. Not showing them by default, with an option to show sounds good to me, but I wonder what other people think.

Bas

0
Comment actions Permalink

Bas Leijdekkers wrote:

Anonymous implementation indeed usually are less interesting to me. And sometimes the interesting implementations are hidden by dozens of anonymous implementations. Not showing them by default, with an option to show sounds good to me, but I wonder what other people think.

Bas


I don't think interesting/non-interesting implementation has any
definite correlation with named/anonymous flag. For instance,

return new JTextField() {
public Dimension getPreferredSize() {
return xxx;
}
}

is definitely not worth showing in JComponent or JTextField hierarchy, while

return new ParserDefinition() {
...
}

only shows developer was lazy enough of creating new named class for
certain language's parser definition.

Moreover, anonymous filter turned on by default appears bad and
dangerous idea to me since these kind of options not always trivial to
find out for novice developers.

Max

0
Comment actions Permalink

The same "problem" exists for nearly every other place where Idea completes class names (e.g. ctrl-n, ctrl-alt-space...).

I am crying for some more intelligent sorting of the results for a long time.


For Ctrl-N I would like to have the classes sorted in this manner:
- Classes within the same module
- Classes within the same project
- Classes of dependencies
- Classes within the package "com.sun" (configurable, so I may add additional packages like XML parser implementations or other stuff I don't want to deal with).


The same thing should be done for ctrl-b:
- Classes within the same module
- Classes within the same project
- Anonymous classes within the same module + project
- Classes of dependencies


If you really don't like this, please provide a way where everybody may set their own Comparator using OpenAPI...

0
Comment actions Permalink

I'd really like to see all implementations there (least surprise).
If there'd be a filter checkbox that would be even better. A full-blown scope dropdown would be nice, too.

0

Please sign in to leave a comment.