How to arrange windows in Eclipse back into default state? - eclipse

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

Related

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.

Reset Eclipse perspective layout

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.

Eclipse reverts perspective on startup

Every time I start up Eclipse (Juno SR2), it reverts to the Java EE perspective, regardless of what perspective I was using before. When I add and switch back the the Java perspective, it has also reset all my windows (Search, JUnit etc.), and all my opened files has been closed as well.
We are a few people here who experience the same problems. Does anyone know how to prevent it?
Try setting up your perspective and configure it as you want it, and then select Window > Save Perspective As... Give the perspective a name and press OK.
Then go to Window > Preferences > General > Perspectives
Find your newly saved perspective in the list, select it and then press Make Default.

How do you make new editors open in another screen?

I use dual monitor for work and I prefer to have the editor on my main screen while the rest of eclipse in my laptop monitor.
However, when I open a new file, that is. I open a file with Cmd-Shift-R, files are opened in my laptop monitor as opposed to the editor that I dragged to my main screen.
I find this mildly annoying. Any ideas?
Are using the Window -> New Window feature? In that case it depends on which window you're working on at the time you press Ctrl+Shift+R.
However, if you're streching only one Eclipse window along both monitors, then the Open Resource dialog will be opened in your "monitor number 1" (and that depends on your graphic configuration: Laptop+Main or Main+Laptop).
I found easier to avoid the new window menu and just to drag those views out of eclipse. This creates a secondary window but the project explorer is linked to the old window so double click will open the file on the main window.
I recommend to save everything as a new perspective that I usually call "Java 2 Windows". This way I can change perspectives when I do not have an auxiliar screen.
P.S. Just avoid closing the auxiliar window when leaving eclipse.

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.