Editor question
In a .java file if I have something like this:
class MyClass implements SomeInterface
{
// class body
}
Can I position the cursor on 'SomeInterface' and hit a key combination
that will highlight all methods in the class that are implementors of
the interface at the cursor?
Thanks,
Ted
Please sign in to leave a comment.
I don't have IDEA open right now, so I can't look up the key combination,
but you can right-click "SomeInterface" and click Go To->Implementations
(this will also show you the corresponding hotkey definition)
-Keith
You could use the structure view with the 'Group Methods By Defining Type'
option turned on, that would be close to what you're looking for.
Vince.
Hi Keith,
Thanks for the tip.
But that brings up a popup with classes that are implementors of the
Interface.
What I want is something that will highlight the methods within the
class that I already have open. Sort of like doing a CTRL SHIFT F7 on
'throws' or 'catch' and having the editor highlight the usages.
Ted
Ted,
IMHO this isn't possible yet. But I think this would be quite a useful
feature. So I suppose you file a feature request.
Ted Hill wrote:
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
There is already a request for this in the backlog:
http://www.jetbrains.net/jira/browse/IDEABKL-228
But I don't think I have seen a request move from the backlog to
development yet. Maybe a new request has more chance, or you could vote
for it.
Bas
Martin Fuhrer wrote:
>>Hi Keith,
>>
>>Thanks for the tip.
>>
>>But that brings up a popup with classes that are implementors of the
>>Interface.
>>
>>What I want is something that will highlight the methods within the
>>class that I already have open. Sort of like doing a CTRL SHIFT F7 on
>>'throws' or 'catch' and having the editor highlight the usages.
>>
>>Ted
This would be a nice touch to CTRLSHIFTF7, given it already does this for exceptions.