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

6 comments
Comment actions Permalink

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

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




0
Comment actions Permalink

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.


0
Comment actions Permalink

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

0
Comment actions Permalink

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:

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


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Comment actions Permalink

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:

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:

>>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


0
Comment actions Permalink

This would be a nice touch to CTRLSHIFTF7, given it already does this for exceptions.

0

Please sign in to leave a comment.