Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to cmd+click on Java method in Eclipse in Mountain Lion

Yesterday I upgraded from Lion to Mountain Lion and today my productivity went down. I cannot perform "cmd + click" on a method or variable to go its declaration because the popup shown in eclipse contains a horizontal scrollbar which overflows the last option.

Does anyone have a solution how to fix this?

UPDATE: Just to be clear- neither "When Scrolling", nor "Automatically based on mouse or trackpad" options remove the problem for me. Only "Always" does work, but its consequences to the whole system UX are not acceptable

like image 261
Anton Avatar asked Aug 06 '12 21:08

Anton


2 Answers

Try doing this. In Mountain Lion, go to Preferences -> General and for Show scroll bars choose Always like so :

enter image description here

That should prevent the scroll bar from covering the last option and allow you to click it. Does this help ?

Update

I just checked that this indeed works. In fact for me it's only the When Scrolling option that creates a problem. With either of the remaining settings, things are peachy :

Unfortunately, I can't post a screen shot since the cmd + click popup disappears as soon as I press the shortcut key for taking a screenshot (Cmd + Shift + 4).

Update 2 I just made this quick screen cast to show the relation between the Mountain Lion Preferences and how it effects eclipse. Take a look at it here.

like image 155
Ashutosh Jindal Avatar answered Nov 06 '22 12:11

Ashutosh Jindal


If you press F3 while the cursor is on a variable or method then Eclipse will 'open declaration'. Fix the problem by removing the mouse-based workflow?

like image 30
Paul D'Ambra Avatar answered Nov 06 '22 13:11

Paul D'Ambra