CTRL+单击打开方法声明在 Eclipse 3.5 (Galileo) 上不起作用
在 J2EE 项目中,按住 Ctrl 键并单击方法(通常只是本地方法,属于同一类的方法)不会跳转到该方法声明。 Eclipse 项目是使用 Gradle 创建的,因此这可能是一个问题,而且当 Eclipse 启动时日志有以下异常:
发生处理程序冲突。这可能会禁用某些命令。 “org.eclipse.wst.jsdt.ui.edit.text.java.open.editor”冲突:HandlerActivation(commandId=org.eclipse.wst.jsdt.ui.edit.text.java.open.editor, 处理程序=ActionHandler(org.eclipse.wst.jsdt.ui.actions.OpenAction@c5f6db), 表达式=AndExpression(AndExpression(org.eclipse.ui.SubActionBars$1@fdd15b,ActivePartExpression(org.eclipse.ui.navigator.resources.ProjectExplorer@38ba04)),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1f528ab)) ,源优先级=1064961) HandlerActivation(commandId=org.eclipse.wst.jsdt.ui.edit.text.java.open.editor, 处理程序=ActionHandler(org.eclipse.wst.jsdt.ui.actions.OpenAction@c5f6db), 表达式=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)
我在 Fedora 12 发行版上运行 eclipse
In a J2EE project Ctrl+click on methods (usually only local methods, ones that belong to the same class) doesn't jump to that method declaration.
The eclipse project was created using Gradle so that might be an issue, also when Eclipse starts the log has the following exception:
A handler conflict occurred. This may disable some commands.
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 Fedora 12 distro
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您的代码包含错误,它不会让您执行 ctrl+click 来查看定义,所以...
首先尝试消除错误
If your code contains error it will not let you to do ctrl+click to see the defination so...
try to remove the errors first
我总是可以按 F3。
I could always just press F3.
看来您没有将源代码放入类路径中。
只需右键单击您的源代码包并选择“构建路径 -> 用作源文件夹”
it seems you didn't put the source code into your classpath.
just right click you source code package and select "build path -> use as source folder"