How to open an eclipse view to Right Side Only - eclipse

I have an eclipse view and whenever I open that view, I want it to default open in Right Side of the eclipse.
How to make this possible

while being in an eclipse perspective place the views in the locations you want. After exiting and reopening eclipse the views will remain in the positions you placed them in the respective perspective.

If you want to programatically position your view, right away when it is opened for the first time, you can create your own perspective, adn in that perspective you either include the view in the desired location, or you include a placeholder to define where the view should appear as soon as it's opened. See API for org.eclipse.ui.IPageLayout, method addPlaceholder.
If you don't create your own perspective, you may not be able to influence where your view is initially positioned. You can only manually position the view after it had been opened, and Eclipse will then remember this location in the workspace.

Related

Adding a view to a folder in perspective - runtime

I want to achieve something during run time.
I have a customized editor plugin. Now, what I want is whenever someone opens this editor, there should be a view displayed in bottom folder no matter what the current perspective is.
What I meant from above is, say currently "Java" perspective is shown on active page , so whenever someone opens my custom editor, I want to add a view in bottom folder(where we see "Problems" tab). Similarly, for any current perspective, my view should get rendered as soon as my custom editor is opened.
I know about initial layout and adding a place holder view, but I can not add place holder to each and every perspective. I want this to work for any perspective opened.
Can someone please suggest workaround for this ?
Thanks in Advance !

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.

why does eclipse not preserve desktop settings position of views?

I notice that once I get my eclipse views right where I want them, when I close out and reopen eclipse I find everything disorganized again. Is there any way to preserve my preferred position for all views in a given perspective?

Eclipse PDE: Open internal web browser in specific position

I want to open the Eclipse internal Web browser programmatically on the right side of the editor area, regardless of the open perspective.
I have no problem doing it in the main editor area, but when I open the browser as (or inside) a View, it is opened at the bottom position.
How do I do that? So far I tried:
- PlatformUI.getWorkbench().getBrowserSupport().createBrowser
- create a view and call ShowView
- create a fast view and open it using org.eclipse.ui.perspectiveExtensions
but none of them gave me any control over the position.
I don't want to create my own perspective, because the browser I want to add must not change the user's environment.
Thanks for your help,
Yaron.

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.