14

If I press Ctrl and the mouse is over a method call, a menu is opened:

Open Declaration

Open Implementation

Open Return Type

If I hit Ctrl + click on the method call, the first option will be considered (Open Declaration).

I want to change the order of these options to:

Open Implementation

Open Declaration

Open Return Type

Is it possible to achieve the second order? ( or to let them in the same order but change "the default" for Ctrl + click to be Open Implementation )

I know that I can uncheck the "Open Declaration" from Window > Preferences > General > Editors > Text Editors > Hyperlinking , but I'd like to have all options there with Open Implementation as default.

Details

  • O.S.: Windows 7
  • IDE: Eclipse Luna (4.4)
  • Picture (default):

    enter image description here

4

2 回答 2

8

我不认为您可以重新排序优先级,但作为一种解决方法,您可以更改Open Implementation的修饰键,以便您可以直接调用它,而不会妨碍其他选项。在 Preferences 对话框中,在搜索框中搜索“hyper”(不带引号),选择Hyperlinking,然后选择Open Implementation条目。在列表底部,您可以更改修饰符(例如,我将其设置为 Ctrl + Alt)。

在此处输入图像描述

于 2015-06-03T13:12:48.547 回答
5

类似问题的答案也可能对您有用:https ://stackoverflow.com/a/2106233/2683059

它建议您尝试使用 eclipse 的插件 - http://eclipse-tools.sourceforge.net/implementors/它将启用您正在寻找的功能。

指示:

在 Eclipse 中选择帮助 > 安装新软件

单击“添加”以添加新的更新站点并输入http://eclipse-tools.sourceforge.net/updates/

在过滤器框中输入“实施者”

检查插件并单击下一步>然后完成安装

于 2015-06-09T11:38:05.617 回答