How can I display project explorer side by side with editor in eclips? - eclipse

I was running my app when suddenly the layout of eclips changed.Now, the project explorer is at the top and the editor below it.What I want is the explorer to be to the left side and the editor to the right.Just like it used to be.It might be simple issue but very annoying as I can't see the files without having to scroll down in the explorer window.I tried reset perspective but didn't work! Any ideas?

You can use the menu command Window > Reset Perspective to restore it to it's default layout. Otherwise, you can move Views around however you like to get a custom layout.

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 to remove eclipse project explorer above the editor?

When I was working on a project for my program fundimentals class I somehow got this miniature project explorer above the editor in eclipse, I have tried to look for a solution on google but I don't think i'm asking the right question so this was my final place to go.
Here is a screenshot of my eclipse:
That is the breadcrumb view.
To toggle it on/off:
Shift+Alt+B (by default on Linux)
Right click in editor and choose Show in breadcrumb
Ctrl+3 to open up quick access (or click in quick access) and type breadcrumb and select the toggle command as in this screenshot:
Click this icon in the tool bar
Yeah that is annoying, the workspace is cluttered enough. I was trying to simply minimize the explorer area so I could see the whole line of code and I eneded up activating this breadcrumb mode. Looks like:
FILES/PREFERENCES/SETTINGS/WORKBENCH/BREADCRUMBS/DISABLE

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.

Netbeans Project Panel toggle

Is there any keyboard short cut in netbeans for toggling between project panel.
For example if I'm working on a laptop and sometime I need for space for see the code window and always I have to click on the project's panel to hide it.
Is there any way I can quickly hide and show that left side thing?
You can use Shift + ESCAPE to maximize the current window (e.g. the code editor).
Alternatively, right click on the editor's tab for the current file and choose "Maximize"
you can use shift+esc to hide or show your project panel.

Eclipse Invisible Editor

I have eclipse Juno. I'm not sure how, but my editor in eclipse is now "invisible". By invisible i mean, the editor pane is not in the visible window. I'm not a novice in eclipse and i know you can minimize the editors or maximize a different panel - but this isn't the case. There isn't even a minimize/maximize button on this empty space where the editor should be.
However, the title bar shows the current file that is opened (but in the invisible editor and hence invisible). and my outline sidebar shows the file's outline.
I think this might have happened when splitting editor panes (which i do a lot, love the side by side comparison), and also switching the perspective.
Any ideas on how i can get the editor back in the visible window?
Above is a screenshot of how it looks. At the time of the screen shot i had just recently clicked a file to open it, and it seems to have opened in the invisible editor.
I've tried all given solutions and none of them solved the problem.
Only using Window->New Window gave me a new fixed eclipse window.
Try Window > Reset Perspective to get things back to normal.
I minimized sharedArea and after restore it was empty. Editors worked well (open, close, save etc.) but i could not see them. Closing all perspectives helped.
This happens to me sometimes when I try to split an editor group by dragging an editor tab. The only solution that worked for me was to close every single perspective in the application toolbar, then Window -> New Window.
I've had this happen occasionally when splitting panes. Restarting Eclipse didn't work for me, nor did resetting the perspective.
The solution I stumbled upon was to give the editor area focus (by clicking in the area where it should be, I suppose) and close files in the invisible editor with Ctrl+W until the editor reappears. You may notice the window title changes to follow the file in the hidden editor.
I had the same problem and simply stopping/restarting Eclipse fixed it.
I have the fix, when neither resetting the perspective or restarting eclipse helps:
At the bottom of the File Menu, there is your recent file name that you are trying to get back. Click on that and it should return.
Start eclipse with:
eclipse.exe -repair