Eclipse right-click issue with X11 forwarding - eclipse

I have installed Eclipse on a remote Linux machine and trying to access it from my Windows box thru X11 forwarding. Yes, we have a requirement to do so.
I'm having a problem with right click behavior when using Eclipse (Helios/Indigo/Juno). When I right click in Eclipse the popup menu briefly appears and then whatever menu item the cursor is near gets selected and that action is performed. If I hold the right click then the popup menu stays open and I can select any menu item. When I release the right click the selected menu item action is performed. Note that in all of these cases the left mouse button is never used.
Tried different Linux flavors(SuSE/Ubuntu) and different X11 servers(Xming/Cygwin/VNC) for windows, the result is same. This happens only with Eclipse, other applications like firefox do not have this problem.
This behavior can partly be attributed to the way Linux handles mouse clicks i.e., releasing the right mouse button will trigger a selection.
Note that in all cases, Eclipse works without any problems locally(on the local Linux machine), these problems only appear when we access Eclipse remotely(X11/VNC) from a Windows box.
I am not sure if the problem is in Eclipse, because Eclipse works fine locally. Then, I am not sure if the problem is in X-server, because other applications like firefox works fine remotely.
Any ideas? Spending hell lot of time on this...!
Here are few related links:
http://devnet.jetbrains.net/message/5246614
http://communities.vmware.com/thread/220037
https://superuser.com/questions/433314/how-do-avoid-context-menu-in-opensuse-to-open-on-mousepress
https://bugzilla.redhat.com/show_bug.cgi?id=542841
https://github.com/linuxmint/Cinnamon/issues/947

I realize this is an old question but it has just started happening to me today (Nov 2016).
Macbook Pro Retina mid 2012 running Sierra with external mac monitor and touchpad
xquartz 2.7.11
using remote x to a redhat 7.2 machine running eclipse Mars (4.5.2)
This has worked consistently for years but after the upgrade to Sierra my right click (two finger tap on tracpad) on remote x running Eclipse causes the right click context menu to flash briefly and then goes away.
I noticed that I had both wireless and my lan connection active (just came back from a meeting and put mac on the monitors)
Found a couple of solutions -
1. changing the two finger tap to a click on the lower right of the touch pad works (but I hate that)
2. if I disable wireless to ensure all remote x sessions are on the cat5 my right click menu works again (two finger tap on trackpad) . I have consistently reproduced this a couple of days in a row now.
3. use a mouse instead of the trackpad.

Related

Eclipse Kepler - How To Maintain Multiple Window Order Across Restarts

I open multiple windows when using Eclipse on a machine running Windows 7.
I would like to be able to boot Eclipse and find the windows displayed (stacked) in the Taskbar in the same order as I left them when I last exited Eclipse.
With Eclipse Indigo, the order in which the windows where opened and displayed in the Windows Taskbar could be predicted by the order in which the windows had previously been selected and viewed.
By activating (selecting to view) the windows one-at-a-time from left to right just before exiting, I was guaranteed to find them opened in same order next time I booted Eclipse.
Eclipse Kepler seems to set the window ordering in some other way that I cannot predict.
Is there anything I can do about this?
You should open a defect against Platform -> UI for this...
We could likely re-arrange the MApplication's children's order to move any window that goes active to the end of the list. That would mean on startup it'd appear on top (they're rendered first to last in the children list...

Eclipse multi editor window copy + paste + undo + redo + delete

Recently started using Eclipse (4.2.2) with PDT for PHP dev. Having some issues if I have multiple editor containers open. Also I'm using Ubuntu, so dont know if that has any baring on it.
I like to drag out some of the tabs onto other screens giving them a windowed container outside of the main IDE. When I do this, copy and paste does not work on the child window, and instead acts like the cursor is still on the main code container.
If I have multiple editor containers within the original IDE window its fine, the problem only manifests itself when I drag the container into its own window.
Just noticed, it also wont let me undo / redo, or press 'delete' without having the same effect on the parent window. backspace however is fine
Is this a bug or 'feature'? And any idea how to fix it?
I have found that if inside of dragging an existing editor tab out into a new window, go to the "Window" menu and select "new editor". Then drag that out and things would work as we expect them to.
FYI - This does not appear to be Ubuntu specific as I have the same problem on OSX 10.8.5 running Eclipse Juno SR2.
Yes, it's a long standing bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=401835
Unfortunately, there doesn't appear to be any way to work around it other than restarting Eclipse.

Eclipse Debugger Loses Focus when Switching Files

When debugging (Juno, SR1 on mac) I prefer using the keyboard keys instead of the mouse to step, step into, step out, go, etc. But these keyboard shortcuts only seem to work when the editor is in focus. The real problem happens when stepping in or out to another file. The editor correctly shows the current line in the new file, but that file is not focused. Consequently, I must grab the mouse and click in that view to re-enable the hotkeys.
This drags my debugging down to a crawl, as I'm constantly having to use the mouse instead of touch-typing. Searches don't find quite this issue. Anyone with work-arounds?
It depends on the Eclipse version. Eclipse 4.2 sucks on Windows and Ubuntu - Due to a bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372941.
Maybe you can change the key bindings:
Go to Window->Preferences - General->Keys, search for "step into", etc. And change in the select box: "When:" to "In Windows" (from "Debugging") or experiment with it to get result you want.
Setting it to "In Windows" I could "Step into" from any focused Eclipse component e.g. Package Manager, Console, Breakpoints, Servers, etc. And even when stepping into file.

Eclipse/Win7 - Scrolling in Content Assist with mouse without focus

Recently switched from Linux to Windows for development in Eclipse Indigo SR1. In Linux, if I Ctrl-Space'd to open a Content Assist window, I could immediately start scrolling with the mouse wheel (with the cursor over the Content Assist window of course).
Now, in Windows 7, if I try to scroll in the same way the Content Assist window goes away, and whatever editor I have open is scrolled instead.
If I first press Tab to give focus to the Content Assist window, the mouse wheel scrolling works as expected, but I'd much rather it behaved as it did for me on Linux, rather than retrain myself to press Tab every time.
Is there a way to make the mouse work this way with Eclipse?
Found an answer that appears to work. It's a little dated but seems to still do the trick.
http://divby0.blogspot.com/2007/04/focus-follows-mouse.html
Dropped this jar in the eclipse plugins folder and restarted. At first I thought it didn't work, but later I noticed there is a little X button added to your toolbar that you need to toggle. Scrolling seems to work properly now.

How to disable vmware workstation taskbar preview?

VMWare workstation uses the new taskbar preview feature in windows 7 - click on the icon in the taskbar and instead of switching to the app it shows you the open tabs. I just want to switch to the app. Does anyone know how to disable this feature?
I've tried to check the vmware website, but it's pretty awful.
Edit -> Preferences
On the Workspace (default) section, unselect "Show Aero Peek thumbnails for open tabs"
According to this thread, you cannot turn this "feature" off in VMWare Workstation 7. I, too, find it to be annoying. I just want one single VMWare entry on my taskbar, but instead I get a taskbar item for every open VM, plus the "Home" tab. When I want to switch to VMWare Workstation, clicking on the entry on the taskbar isn't enough. Instead, I have to click on the group of eight VMWare buttons and choose one from the previews that pop up. It's a step backwards in usability compared to VMWare Workstation 6.5, but unfortunately it's what we're stuck with for now.
Hold Ctrl while clicking the button.
I have looked for the same issue, and I did not find any way to disable the preview's. My solution is to close all of the open tabs of the VM's (by default they are all opened), and leave just the VM's that are currently in your use (you can leave VM's to working in the background). That way, you see in the Taskbar only the VM's that you're heavily working on (which can be just one, in you case).