Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Open Declaration
Open Declaration [message #151690] Tue, 30 March 2004 22:22 Go to next message
Eclipse UserFriend
Hi-
If you are in a class that uses a refernce to another class using
Interface,
then when you do Open Declaration it takes you to the method of the
Interface.
To get to the method either you have to specifically open the class
implements the interface or use type hierarchy . If I want to right click
and go to the class that where the method is implemented and not the
interface that implements where the method is declared...what is the
faster way to reach there?
thanks for your help
Re: Open Declaration [message #151746 is a reply to message #151690] Wed, 31 March 2004 04:05 Go to previous messageGo to next message
Eclipse UserFriend
rohitsoftware wrote:
> If you are in a class that uses a refernce to another class using
> Interface,
> then when you do Open Declaration it takes you to the method of the
> Interface.
> To get to the method either you have to specifically open the class
> implements the interface or use type hierarchy . If I want to right click
> and go to the class that where the method is implemented and not the
> interface that implements where the method is declared...what is the
> faster way to reach there?

There may be more than one implementation, so you cannot know which one
to jump to. Press Ctrl+T on the reference for a quick way to jump to a
specific implementation.

-tom
Re: Open Declaration [message #151865 is a reply to message #151690] Wed, 31 March 2004 09:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

rohitsoftware wrote:

> Hi-
> If you are in a class that uses a refernce to another class using
> Interface,
> then when you do Open Declaration it takes you to the method of the
> Interface.
> To get to the method either you have to specifically open the class
> implements the interface or use type hierarchy . If I want to right click
> and go to the class that where the method is implemented and not the
> interface that implements where the method is declared...what is the
> faster way to reach there?
> thanks for your help
>

You can select an interface and search for implementors, or select an
interface method and search for Declarations.

HTH,
Eric


True love is like ghosts, which everyone talks about but few have
actually seen.
Re: Open Declaration [message #151877 is a reply to message #151746] Wed, 31 March 2004 09:55 Go to previous message
Eclipse UserFriend
Thanks- that's faster.

Tom Eicher wrote:

> rohitsoftware wrote:
> > If you are in a class that uses a refernce to another class using
> > Interface,
> > then when you do Open Declaration it takes you to the method of the
> > Interface.
> > To get to the method either you have to specifically open the class
> > implements the interface or use type hierarchy . If I want to right click
> > and go to the class that where the method is implemented and not the
> > interface that implements where the method is declared...what is the
> > faster way to reach there?

> There may be more than one implementation, so you cannot know which one
> to jump to. Press Ctrl+T on the reference for a quick way to jump to a
> specific implementation.

> -tom
Previous Topic:3.0M8: project => Build All/Project always grayed out
Next Topic:Help - PDE Guide disappears when clicked..
Goto Forum:
  


Current Time: Tue May 13 11:02:30 EDT 2025

Powered by FUDForum. Page generated in 0.04655 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top