Hiding floating windows in Eclipse Juno - eclipse

In Eclipse Juno if I edit a Java file in a maximized Java Editor and run a unit test the JUnit View shows up in a floating window.
The Java Editor remains active and the JUnit View hides half of my screen. How can I hide the JUnit window with keyboard shortcuts?
I've used Juno Service Release 1, Build id: 20121004-1855 and it's the same with Juno Service Release 2, Build id: 20130225-0426.

I went the other way round - using keyboard shortcut to activate editor.
The default is F12, which I found too far to move my lazy finger to.
Instead, I rebound it to Ctrl + ;. Its very easy to reach out, and there is no other eclipse shortcut bound to this key combo (at least in my setup).

Please make sure you are on Juno SR1. There were some fixes in SR1 related to floating windows. For me the JUnit window simply vanishes by hitting Esc or by focusing the editor again.
To ease your pain, maybe you also want to check "Activate on error/failure only" in the view menu of the JUnit view.

Bug 391808 was reported about the Fast View not collapsing when clicking in the Java Editor. I just commented with this particular reproduction of the problem. I see the same issue as you working with Juno SR1. I have to actually click in the JUnit view before pressing Esc will work.

Related

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

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...

How can I save a multiwindow perspective layout in Eclipse Mars

When I debug code in Eclipse, I like to take advantage of multiple monitors. In Eclipse Kepler, I did this by docking a couple of windows on my secondary monitor and then saving that perspective. In Eclipse Mars, whenever I switch perspectives, it resizes and relocates the floating windows that should appear on my secondary monitor. How do I preserve size and location of views in a perspective in Eclipse Mars?
The only way I could get this to work correctly was to create the perspective I wanted, save the perspective, then right click the perspective icon and click "reset". Now it resizes right whenever I switch perspectives.
You could drag your program down near the console.

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.

Eclipse Juno - how to make the views minimize when they lose focus?

When I work with eclipse, I like to have my Java editor maximized, and all other views minimized in the trim stack (the area around the edges of the window). This way, I can expand the view only when I need it, by clicking on the view icon.
In previous Eclipse versions, when I finished working with a view, I clicked on another view or the editor so that it lost focus, and that caused it to minimize again. In Juno, it doesn't work - when I click on the editor, the view stays open and is hiding my code. In order to close it, I have to either click the view icon, or click on another program and then return to Eclipse.
Do you have any idea if there is a setting I can change to get the old behavior back?
Thanks!
Edit: Seems like a bug in eclipse.
I am unable to reproduce this problem using Juno SR1. Bug 371598 was fixed and looks like the same problem.

When opening java files in Eclipse Juno, the editor seems to be minimised or hidden

I've installed Eclipse Juno SR1 and switched to my old workspace. When I open a java file in the editor, it seems to be minimized (or hidden). The titlebar shows the current file and the outline displays all methods.
This is much as described in the Eclipse Invisible Editor, however, the suggested solution 'Window > Reset Perspective' does not work for me.
Any ideas on how I can get the editor back in the window?
I have the same problem with previous version of Eclipse Juno (not SR1).
"Windows" -> "New Window" seems to bring back the invisible editor view.
Then just close the old one and restart eclipse to make sure it "remembers" the configuration.
Try Window > Reset Perspective to get things back to normal.
There are times when the editor or other views starts behaving erratic. For such situations do:
"Windows" -> "New Window".
Close the old one.
I had this problem in STS and then it contaminated my regular Eclipse in the same workspace. "New Window" helped, thanks!
You don't need to restart eclipse.
Just double-click your file inside the Package Explorer view. You will see it's name in the title bar, but it won't appear in the editor:
Now, just type Ctrl + w (in case of Windows).
Reopen your file, and it will appear in the editor: