CTRL + click declaration to open a method does not work on Eclipse 3.5 (Galileo)

In a J2EE project, Ctrl + click on methods (usually only local methods belonging to the same class) do not jump into this method declaration. The eclipse project was created using Gradle, so this can be a problem, also when Eclipse starts the log, it has the following exception:

A handler conflict has occurred. This may cause some commands to be disabled. Conflict for 'org.eclipse.wst.jsdt.ui.edit.text.java.open.editor': HandlerActivation (commandId = org.eclipse.wst.jsdt.ui.edit.text.java.open.editor, Handler = ActionHandler ( org.eclipse.wst.jsdt.ui.actions.OpenAction@c5f6db ), expression = AndExpression (AndExpression (org.eclipse.ui.SubActionBars $ 1 @ fdd15b, ActivePartExpression ( org.eclipse.ui.navigator.resources.ProjectExplorer@38ba04 )), WorkbenchWindowExpression ( org.eclipse.ui.internal.WorkbenchWindow@1f528ab )), sourcePriority = 1064961) HandlerActivation (commandId = org.eclipse.wst.jsdt.ui.edit.text.java.open.editor, Handler = ActionHandler ( org.eclipse.wst.jsdt.ui.actions.OpenAction@c5f6db ), expression = AndExpression (AndExpression (org.eclipse.ui.SubActionBars $ 1 @ fdd15b, ActivePartExpression ( org.eclipse.ui.navigator.resources.ProjectExplorer@38ba04 )), WorkbenchWindowExpression ( org.eclipse.ui.internal.WorkbenchWindow@1f528ab )), sourcePriority = 1064961)

I am running eclipse on a Fedora 12 distribution

+4
source share
3 answers

It seems you did not put the source code in your classpath. just right-click the source package and select "build path -> use as source folder"

+6
source

I could always just press F3.

+5
source

If your code contains an error, it will not allow you to do ctrl + click to see the protection so ... try removing the errors first.

+1
source

Source: https://habr.com/ru/post/1309341/


All Articles