Search code examples
javaeclipsehyperlinkideeclipse-luna

Eclipse - change order for Open Declaration / Implementation / Return Type


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


Solution

  • I don't think you can re-order the priorities, but as a workaround you can change the modifier keys for Open Implementation so that you can invoke it directly without the other options getting in the way. In the Preferences dialog, search for "hyper" in the search box (without the quotes), select Hyperlinking and then select the Open Implementation entry. At the bottom of the list, you can change the modifiers (for example, I set it to Ctrl + Alt).

    enter image description here