Interface implementors [message #220784] |
Fri, 16 December 2005 13:56 |
Eclipse User |
|
|
|
Originally posted by: awalkden.alaric.co.uk
Apologies if I've missed an obvious solution, but is there a way of
getting eclipse to present me with all classes in a (java) project that
implement a given interface, or extend a given class? I could ask for
References in the project, but that drags back all objects of that type
that are declared too.
Thanks in advance,
Andrew.
|
|
|
|
Re: Interface implementors [message #220805 is a reply to message #220784] |
Fri, 16 December 2005 14:14 |
Eclipse User |
|
|
|
Originally posted by: olaf.delgado.web.de
Andrew Walkden wrote:
> Apologies if I've missed an obvious solution, but is there a way of
> getting eclipse to present me with all classes in a (java) project that
> implement a given interface, or extend a given class? I could ask for
> References in the project, but that drags back all objects of that type
> that are declared too.
> Thanks in advance,
> Andrew.
In the Package Explorer, right-click on the class name, then select
"Open Type Hierarchy".
Cheers
O.
|
|
|
|
Re: Interface implementors [message #220818 is a reply to message #220812] |
Fri, 16 December 2005 20:36 |
Eclipse User |
|
|
|
Originally posted by: tonychen.ca.ibm.com
What API should I use to do the same?
Tony
Tom Eicher wrote:
> Ricky wrote:
>
>>> Apologies if I've missed an obvious solution, but is there a way of
>>> getting eclipse to present me with all classes in a (java) project
>>> that implement a given interface, or extend a given class?
>>
>>
>> Try "Open Type Hierarchy" (context menu) or F4 when your cursor is on
>> a type like a class name.
>
>
> Or, as a lightweight alternative, press Ctrl+T or choose Navigate >
> Quick Type Hierarchy, which will open a quick view that you can navigate
> through and filter.
>
> -tom
|
|
|
|
|
Re: Interface implementors [message #220955 is a reply to message #220812] |
Tue, 20 December 2005 21:13 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Tom Eicher wrote:
> Ricky wrote:
>
>>> Apologies if I've missed an obvious solution, but is there a way of
>>> getting eclipse to present me with all classes in a (java) project
>>> that implement a given interface, or extend a given class?
>>
>>
>> Try "Open Type Hierarchy" (context menu) or F4 when your cursor is on
>> a type like a class name.
>
>
> Or, as a lightweight alternative, press Ctrl+T or choose Navigate >
> Quick Type Hierarchy, which will open a quick view that you can navigate
> through and filter.
My preferred method: Right-click on an interface name in the Package
Explorer or Types view and choose Implementors...
You can assign a keyboard shortcut for this action; it is in the Search
category in the Keys preferences.
HTH,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03075 seconds