Ctrl+click doesn't work in Eclipse Juno

后端 未结 23 2083
傲寒
傲寒 2020-12-05 13:50

For every version of Eclipse I\'ve used prior to Juno, ctrl+click would find the declaration of a variable/class/method. It was an extremely useful feature when d

相关标签:
23条回答
  • 2020-12-05 14:14

    Sometimes if a file is too large, then for Scalability purposes, the navigation is disabled by Eclipse. For me it happened with Eclipse with C++

    It can be enabled by Window->Preferences->C/C++/Editor/Scalability and then under "Scalability mode settings' uncheck everything.

    0 讨论(0)
  • 2020-12-05 14:15

    I can confirm that Ctrl + click works fine with the following :

    Eclipse Java EE IDE for Web Developers.
    Version: Juno Release
    Build id: 20120606-2254
    Operating System : Windows 7, 64 Bit
    

    What do you have for the following preference ?

    On Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking -> Open Declaration
    

    Here is what I had for a new workspace in Juno :

    enter image description here

    Update

    I have not experienced this in the recent past, but I vaguely remember encountering this problem in previous Eclipse releases (Galileo and earlier).

    All of what follows is worth doing only if we are sure that it's a problem with the Eclipse workspace. A quick way of checking this is to restart eclipse with a new workspace (Do this by going to File -> Switch Workspace -> Other... and choosing the path to a folder which is preferably empty and different than the current workspace folder).

    If things worked in the new workspace, my fix then was one of the following, in increasing order extremeness :

    1. Re-start eclipse (Yup, sometimes that is all it took)
    2. Re-start eclipse with the -clean parameter to clean out the workspace ( See this). This might specially be worth doing if you used a workspace from an older version of eclipse.
    3. When the above failed, and I just had to use my existing workspace, I backed up my workspace folder and restarted Eclipse after deleting WORKSPACE_FOLDER/.metadata/.plugins/org.eclipse.jdt.core
    0 讨论(0)
  • 2020-12-05 14:15

    You need to rebuild your workspace using CTRL+B. I a problem where I'd be able to go to the function declarations but for some I wouldn't. After a rebuild, I could do all. I hope that helps.

    0 讨论(0)
  • 2020-12-05 14:17

    I found resolving issues with the project's Java Build Path settings fixed this issue.

    Right-click the project, select Properties, select Java Build Path.

    (NB: I'm using Eclipse Kepler Service Release 2 on Windows 7)

    0 讨论(0)
  • 2020-12-05 14:18

    I was facing the same issue in eclipse. I verified preferences and build path and also no error. Tried closing and opening the eclipse but nothing worked. Even I could not run debug configuration. I created a new workspace and Ctrl+click / +click (Mac os) was working fine.

    Hope this may help someone.

    0 讨论(0)
  • 2020-12-05 14:19

    Please check your .classpath file as well. Some times Eclipse do not redirect when using "ctrl+click" to Class or method if classpath is not proper. I had faced same issue in Eclipse Mars but it got resolved when I got proper .classpath file at my work location.

    0 讨论(0)
提交回复
热议问题