In Eclipse IDE how to disable the closing of an editor tab via plain right-click - eclipse

I am using Eclipse Oxygen (Ver 4.7.0) on CentOS with the UI shown via MobaXterm's X Windows server on Windows 7.
In Eclipse I have the weird problem that when I right-click on an editor tab the tab closes immediately! No context menu, nothing, just the tab vanishes. I would like to disable this, but I couldn't find any entry for right-clicking in the Keys section of the Preferences.
Is there another place where the right-click behaviour is set? Or how else can I disable this? The problem occurs only for editor tabs.
Additional details:
The right-click behaves correctly inside an editor tab by bringing up the context menu. This shows that the right-click is not genearlly broken in the X Window system.
The right-click behaves correctly in other X applications like PyCharm.

An explanation
A closer look revealed that Eclipse does show the context menu on right-click press-down, but on right-click release-up it registers a left-click event.
Due to the particular situation of when the context menu was drawn, the mouse pointer than just always happens to sit over the top entry in the menu. And this top entry is Close. The following screenshot might illustrate this a bit (unfortunately without the mouse pointer):
Solution
The immediate solution for me is to move the mouse after pressing the right mouse button and before releasing it.
Still I don't know why this happens only when right-clicking a tab and only for me - and probably not for many other people...

Related

GNAT GPS Project Explorer View is Missing

I am using GNAT GPS version 6.0.1 in Windows 7. For some unknown reason, the Project View pane that is on the left side of the main window has disappeared when I use the debugger. I can't find any menu or preference options that control whether this pane is visible.
Update--
I should point out that this is the pane with the tabs along the left side rather than along the top. I can show a similar pane with projects listed by splitting the main window, but its tabs are along the top. Also, Its behavior is different form the one with tabs on the left side. Double-clicking on a file name, for example, should open the file in the main window. Using a split window. this opens the file in the window that is showing the projects.
End of Update --
I can select Project -> Project View from the toolbar, and I get a Project View as one tab in the main window (along with the source files that I am working with).
Can someone tell me how to control whether the left-hand pane is visible and how to make sure the Project View has a tab in that pane?
Also, when I look at Window -> Perspective, I see that the Default perspective is selected when I'm not using the debugger and the Debug perspective is selected when I am using the debugger. Switching from the Debug perspective to the Default perspective while I am running the debugger does bring back the left-hand pane, but my debug tab and the Debugger Data window disappear. Can I fix the Debug perspective so the left-hand pane is part of its configuration by deffault?
By the way, in this version, there is no Show View option in the toolbar menus.
This can be opened with /Project/Project View or /Tools/Views/Project.
To put the tabs to the left instead of the top, right click on the tab and select the Tabs Location item. You can also use drag-and-drop (from a tab) to move windows around, in particular to move the Project view to the left of your desktop.
That said, the simplest might be to remove the file $HOME/.gps/perspectives6.xml to restart from the default desktop.

Eclipse in Ubuntu starting without any window visible (only menu bar)

I'm running Ubuntu 14.04 and Eclipse Kepler. Since yesterday I've been experiencing a strange issue: when I open up Eclipse, all that I'm seeing is the menu bar on the upper Ubuntu bar. No code editor, window whatsoever.
In order to see a window I go to Window -> New window, but this is just a workaround. It starts up a new window with no preferences set, no last edited files etc. Moreover it shows that I have 2 Eclipse windows opened, while I can only see 1.
Any ideas on how to fix that?
I agree with Gorka, it looks like it was related with window size.
Here my solution (worked for me on Ubuntu 14.04):
1) Switch to Eclipse so that menu header is visible (you can use Alt+Tab or click on Eclipse icon in the list of applications)
2) Press Ctrl+Super+ArrowUp (Super=Windows button usually between Ctrl and Alt)
This combination maximizes active window, so it restores Eclipse to full screen.
Go to Window -> Show Toolbar. That should fix your issue.
Edit: Also try Window -> Close All Perspectives. Now, Window -> Open Perspective -> Other... and select Java (default).
I had exactly the same problem, the only solution I could find was to download the newest Eclipse version from www.eclipse.org instead of from the Ubuntu repository.
I had the same issue and I've found out what was happening:
The problem was that the size of the eclipse window had been reduced to the minimum, see my desktop in http://i.imgur.com/lTlgOvb.jpg and notice the small vertical line in the top-left corner. This small line is the eclipse window, so just go with the cursor and make the it bigger.
I had exactly the same problem happening on only one workspace I had setup within Eclipse. I pressed some keyboard shortcut to make it happen but didn't know what that shortcut was (fat fingers meant I pressed a key I didn't mean to) and now can't reverse it! All other workspaces loaded up fine.
Managed to resolve it by Clicking on Window -> New Window!
I was having the same issue and got to fix it by just maximizing the windows (window button + up arrow key).. lol
stupid, but worked.

Xterm right click misbehaviors

When I open linux eclipse IDE from windows using xterm(Reflection, MobaXterm), I found few problems:
When I right-click on a project, the menu appears for a millisecond, and disappears with a click action on about.
Sometimes the menu appears on right click, but if that menu has more items, usually it should scroll down/up, but the scroll button staying behind windows tast bar.
Can anyone help me on this?
Thanks in advance!
I have the same issue too. It seems that the right-click menu disapears behind the Eclipse main window and behind the Windows taskbar...
Here is the workaround I use currently: in MobaXterm 5.0, just go to "settings" --> "X11" and choose "Windowed mode with Fvwm": this will open an X11 window.
When you run Eclipse using this tip, it correctly displays the right-click menu.
I hope this helps!
I googled but didn't find a solution.
For the first one, you can right click and hold it, move the mouse to the target menu entry, then release it.
In this way you can avoid a wrong click.

How to disable Eclipse's behavior of maximizing editor when double clicking a tab?

I recently updated my Eclipse (now running 20100218-1602), and I've found whenever I click around quickly between tabs on the tab bar, it will sometimes maximize the editor and hide the PHP Explorer to the left. After researching a little, this appears to be a feature of double clicking a tab. So I guess it's my fault, I'm sure I'm clicking around too fast and mistakenly double clicking a tab, but it happens often enough on what I'd consider a normal editing session that I've come to absolutely loathe it, and even after the usual googling due diligence cannot figure out how to turn it off.
From this post someone mentions the Window.AutoHideAll shortcut, however that seems to only be for assigning keyboard shortcuts--this is a mouse click thing. But maybe it's a clue.
I can't find anything relevant under Eclipse -> Preferences -> PHP. I don't think it's specific to PHP because if I switch to the Java perspective, double clicking a tab hides the Package Explorer.
Any suggestions are appreciated, thanks!
You could settle for a simpler solution than some arcane settings or shortcut:
resize your Eclipse main windows a bit smaller
drag the views you do not want to be covered after a "tab double-click" outside the main Eclipse window
there is no 3.
When you double-click, the Editor will cover only the main Eclipse window, while the other views will still be visible just beside that window.

How can I take eclipse out of MDI mode?

Does anyone know of a way to make Eclipse an SDI application rather than an MDI one?
SDI - Single document interface, each pane is its own window
MDI - Multiple document interface, all of the panes are stuck inside one "master" window.
Eclipse is an MDI application. All of the little panes (like the call stack, variable viewer, etc) are part of the one master Eclipse window. Rather than having all of the windows stuck inside one master "eclipse" window, I'd like them to all be their own free-floating windows.
To make a pane "free-floatting" just drag that pane outside the main eclipse window.
If you have only one monitor, you have to resize first your eclipse window: you can not leave eclipse maximized on all the screen space.
Then you have to drag your pane outside the eclipse window until you see the cursor change into a little window with a '+' in the middle.
Once all your panes are in the required position, save your configuration in a new perspective. (Menu Window\Save Perspective As)
That way, you can switch between panes configurations easily.
Regarding the SDI aspect however, the editor part of eclipse is made to edit several document (so, MDI only).
Karl's double-click suggestion is the most effective to focus on one of those edited document.
Hit the little X next to each document until there is only one open.
Alternatively, doubleclick on the tab to maximize it.
Then edit your question to give some more information about what you really want to do.
No, Unfortuantly Eclipse 3.x and lower do not allow the editor window to be outside the application window. You can drag other windows outside the main window to give you more editor space, but you cannot for example drag an editor outside the main eclipse window onto a second monitor and to have another code window open on the main monitor. This feature seems to be scheduled for Eclipse 4. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=8886 for this feature.