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.
Related
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...
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.
I've just updated from Eclipse Juno to Kepler. What happened to the Eclipse perspective layout and how can I restore it to fill the entire window?
Open Windows - Perspective - Other - Select Java (default) and open Windows again and select reset perspective
From the image provided you do indeed have a minimized perspective stack...it's the far right toolbar at the top of the image that has just the icons for the java and debug perspectives. If you click on its 'restore' button the actual perspective will re-appear.
What it looks like is that you have the 'Welcome' (Intro) screen up and maximized (thus the minimized perspective stack). If you were to click the selected item in that top right toolbar the 'fly out' perspective would go away allowing access to the view's restore (un-maximize) button.
Not sure why the Intro's blank though...;-)
You can try press right mouse button in perspective you need reset, after there click in Reset
Windows --> Perspective -->Close All Perspective
and after that restart Eclipse.
While dragging the perspective tool bar to a different place in eclipse Juno, my eclipse got hang, and after restarting eclipse, the perspective bar gone.
I tried googling but didnt find a solution to display that bar again. Anyone got a solution?
There is actually no need to reset your perspective, let alone to nuke your workbench.xmi memo file. There is a smarter way:
Open a new workbench window. From the main menu: Window => Ǹew Window. Please note that the new window does have the (already customized) Perspective Bar.
Close the window that does not have the Perspective Bar first.
Close the second window. This will save a cleaner version of workbench.xmi (overriding the one that has a perspective bar positioned out of the screen).
Reopen eclipse. The Perspective Bar is back at its place.
There are two things you can try:
Reset your current perspective (Window/Reset perspective...). Although your configured set of views will get lost, it might bring back the perspective switcher.
If that does not work, then you should reset the entire saved workbench GUI. This can be done by deleting the .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi file from your workspace folder, or by starting eclipse with the -clearPersistedState
Point 2. assumes, that in case of Juno you are using Eclipse 4.2 (the new GUI, not 3.8, the old).
First of all let me say: I will quit of using Eclipse as soon as putting perspective menu to left will be impossible (and force my team to do so as well).
As workaround I do the following for every new workspace
Create workspace
Close eclipse
Override .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi by stashed file.
I made stashed workbench.xmi this way:
Create workspace in 3.8, configure bar at left
Open this workspace in 4.* (it will create stashed file).
Close eclipse
Stash workbench.xmi.
At least on eclipse 2019-06 (4.12.0), it's enough to
"switch workspace"->"Other"->"Recent Workspaces"->(The same you're on)
Is there a function that would arrange windows in Eclipse into state that was previously saved?
I always resize windows (Package Explorer, panels with views etc.) based on current needs and then I have to put it back.
Maximizing and minimizing is great but this would be really a killer feature. A click to arrange windows to the desired state would be perfect
You can save your Perspective how you like it and then when that Perspective gets loaded it will come back to the saved state:
Window > Save Perspective As...
To reset:
Window > Reset Perspective...
Click on windows > Perspective > Reset Perspective
Open new window it will set a default view for eclipse
window->new window