Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » hyperlinking question
hyperlinking question [message #214360] Fri, 18 April 2008 11:18 Go to next message
Eclipse UserFriend
The hyperlinking lets you jump to the function declaration, is there a way
to link to the actual function instead of the declaration?

jason
Re: hyperlinking question [message #214424 is a reply to message #214360] Fri, 18 April 2008 17:06 Go to previous messageGo to next message
Eclipse UserFriend
What do you mean with hyperlink?
In my Eclipse-Europa, version 3.3.2, Suse Linux10.1, the cursor jumps to
the function when I am clicking on the function name in the Outline view
or when I click with RMB on the name in the editor window and then select
Open Declaration from the pop up menue.

In an older version of Eclipse there were two choices in the pop up menue,
either Open Declaration or Open Definition.
Maybe the behaviour depends on the Eclipse version you have.

Nikosch
Re: hyperlinking question [message #214430 is a reply to message #214424] Fri, 18 April 2008 17:42 Go to previous messageGo to next message
Eclipse UserFriend
Guess I didn't explain that real well. Let me try again.

Preferences->General->Editors->Text Editors->Hyperlinking

When I'm working in function ComsubMenu(), located in comsub.c, and it
calls GetNumEntry(), located in entry.c, you can hold Ctrl and click the
function and it will hyperlink you to the function declaration. I would
prefer if it linked me to the actual function, not the declaration.

I'm use to CodeWright and in that IDE when you hovered over a function a
popup box allowed you to jump directly to either the declaration or the
function, which was really handy. I'm trying to find out if I can
configure Eclipse to do the same.
Re: hyperlinking question [message #214578 is a reply to message #214430] Mon, 21 April 2008 06:00 Go to previous message
Eclipse UserFriend
jason wrote:
> Guess I didn't explain that real well. Let me try again.
> Preferences->General->Editors->Text Editors->Hyperlinking
>
> When I'm working in function ComsubMenu(), located in comsub.c, and it
> calls GetNumEntry(), located in entry.c, you can hold Ctrl and click the
> function and it will hyperlink you to the function declaration. I would
> prefer if it linked me to the actual function, not the declaration.
> I'm use to CodeWright and in that IDE when you hovered over a function a
> popup box allowed you to jump directly to either the declaration or the
> function, which was really handy. I'm trying to find out if I can
> configure Eclipse to do the same.
>
>
>

(Assuming CDT >= 4.0)
The hyperlink navigates to the same location as Open Declaration (F3).
Note that Open Declaration does navigate to the function definition and
only if it can't find it, it navigates to the declaration.
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=167162

--
Anton Leherbauer
Wind River CDT Team, Austria
Previous Topic:Deploy a C application on embedded system
Next Topic:No symbol "XXX" in current context
Goto Forum:
  


Current Time: Fri Apr 25 23:29:26 EDT 2025

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

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

Back to the top