Bug 106873 - [navigation] Middle click on a java element should be equal to 'Open Hyperlink'
Summary: [navigation] Middle click on a java element should be equal to 'Open Hyperlink'
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 123097 (view as bug list)
Depends on: 47099
Blocks:
  Show dependency tree
 
Reported: 2005-08-12 12:32 EDT by Pedro Vicente CLA
Modified: 2019-11-08 04:37 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Vicente CLA 2005-08-12 12:32:42 EDT
One of the most common operations in the eclipse is to navigate to the
declaration of a variable.
Currently there are two ways to do this : F3 and ctrl+left click
In order to speed the execution we should be able to use the middle 
button.
It's similiar to what is used in Firefox to open links in new tabs.
Comment 1 Dani Megert CLA 2006-01-09 08:49:13 EST
*** Bug 123097 has been marked as a duplicate of this bug. ***
Comment 2 Markus Keller CLA 2006-01-09 12:13:01 EST
See also bug 47099.
Comment 3 BoD CLA 2008-11-20 06:53:42 EST
Is there any progress planned for this bug?

It was open in 2005, and as of today it is still not possible to middle-click (as in IntelliJ, instead of ctrl-click) to open declaration.

I know there is not many votes for the bug, but still I really think it wouldn't be hard to implement, and would be a huge UI improvement.

Thanks.
Comment 4 Dani Megert CLA 2008-11-20 07:11:53 EST
>Is there any progress planned for this bug?
No, as there was no work done on bug 47099. Now, if you think it is so easy to implement you are welcome to provide a good quality patch.
Comment 5 Markus Keller CLA 2010-08-30 13:16:59 EDT
I'm not so sure anymore whether bug 47099 would be a good path to solve this. F3 always uses the current caret location, but middle-click should target the element under the mouse (like Ctrl+click).

We should just hardcode mouse button 2 to perform the default hyperlink action in text editors.
Comment 6 Dani Megert CLA 2010-08-31 02:57:41 EDT
>We should just hardcode mouse button 2 to perform the default hyperlink action
>in text editors.
I'm against that. But I agree that makes more sense to bind it to 'Open Hyperlink' rather than 'Open (F3)'.
Comment 7 Markus Keller CLA 2010-08-31 09:49:45 EDT
We can always start using infrastructure from the platform once that's available, but until then, I think it's OK to follow the platform's example and hardcode this like:
PaneFolder.mouseListener.new MouseAdapter() {...}.mouseUp(MouseEvent)

Binding mouse button 2 to the 'Open Hyperlink' command alone would not be enough. It actually needs to be "click button 1 and then run 'Open Hyperlink'" or "MOD1 + click button 1".
Comment 8 Lars Vogel CLA 2019-11-08 04:37:12 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant please remove the stalebug whiteboard tag.