eclipse navigate showing java source in directory hierachy instead of package - eclipse

Due to some reason I found, when displaying the source ,my navigator changed from the right side (preferred) to the left side , which need more clicks to access the source file. I remembered that I did accept some chance unconsciously which result in this unpleasant change but can not find a way go back...
Thanks for your help!

Your best friend in eclipse is CTRL+3 (quick access), press that and then search for what you want, try perspectives and views, see below.
Perspectives
Check what perspective you are in (now). In the top right of eclipse there is a list of perspectives. Sometimes when you carry out an action it asks you if you want to change perspectives. This can change your views/layouts. You might want the Java or Java EE perspective.
views
There are multiple views of your files. What is the name of the tab where ComputeBench is showing up? Try opening the "Project Explorer" or the "Package Explorer" views.

Related

Can't see project explorer in STM32CubeIDE [duplicate]

Suddenly my project explorer window has disappeared from Eclipse. I try selecting Windows > Show View > Project Explorer, but nothing happens. What can I do?
Try Window --> Perspective --> Reset Perspective.... Remember that your own settings, if any, will also be reset.
Try to close Eclipse IDE and reopen it and
click on window->show view->project explorer
For me it was like this...
Window->Show View->Other->General->Project Explorer
Or
Window->Open Perspective->Other->Java (default)
Open Eclipse IDE
Enter "Project Explorer" on Quick Access (Search text box).
Either select from drop-down or press Enter
Window -> Perspective -> Reset
Reset the IDE
Window -> Show View -> Project Explorer
Select Window->Show View, if it is not shown there then select other. Under General you can see Project Explorer.
If none of the above solutions work, Try Window-> New Window
I had encountered the same problem as well. The following solution helped me to get over it:
Window -> Show View -> Package Explorer.
You can use the shortcut as well. It's Alt + Shift + Q, P
Using the latest Luna upgrade.
The only solution that worked was Window >> New Window.
It's very easy to lose that critical bar.
If you are on either Eclipse or Spring tool suite then follow the below steps.
(1) Go to 'Window' on the top of the editor. Click on it
(2) Select show view. You should see an option 'Project Explorer'. Click on it.
You should be able to do it.
Close the current perspective:
Reopen it using Window -> Open perspective.
i had also encountered this issue.
.
This Solution worked for me....
windows->navigation->maximize active View or Editor(ctrl + M)
.
in the screen you can see on left side navigation menus ... now click on those buttons one by one ....you will get your solution...
Try changing the perspective to JavaEE and then check.
Not sure if this is problem but, this ticked me off for a while since I did not realize what was happening at first - maybe this will help others.
Its not really a problem, just the way Eclipse works. (I'm use to Visual studio)
Its all about Perspectives!
I set up an (existing) PHP project in eclipse(neon) and then tried to configure and run debug. A Popup "Confirm Perspective Switch" is shown - I selected "Yes", not realizing what it actually does. The "perspective" then changes and you no longer see the project explorer anywhere. You cant "open" the project explorer window from top nav > window > show view, since its no longer there (which is BS, it should show something that gives you indication of current and other "perspectives" - at least for newbie.) No where now does it give project explore options.
Now you must change the "perspective" back from debug to PHP (at least in in my case).
This can be done a couple ways, easiest is from the icons on right top right side side. One icon would be the "bug", and next to it is the PHP icon. Just click the icon "perspective" you want. The other way is from top nav bar > window > Perspective > open Perspective, then select PHP. Could they hide this any deeper?
I know this is likely second nature to those who have used eclipse for a while, but was frustrating to me (on day one) till I figured out what was going on.
Please Select window in tool bar
Move to show view
Select project explorer
applied the same method to reset the perspective, no changes appaired then I restart the Eclipse IDE which was fine then.

How to make Eclipse automatically show selected file in explorer?

In one of my projects, I guess I enabled a setting somewhere that I didn't realize how much I use.
Whenever I click into the main editor, it brings the package explorer to the file automatically and scrolls to it. I can't seem to find this setting anywhere in preferences, does anyone know what it is called?
It's called "Link with Editor", the two-way arrow icon you'll find in the toolbars of various Views.

How do I expand Project Explorer to the bottom of my eclipse screen?

I recently had to delete all my projects in eclipse and re-import them, and it messed up the view organization I had (I had never realized I could save a view until now). I want to use the Team Synchronizing Perspective in Eclipse, but I want the Project Explorer section to go to the bottom of the screen.
for example, in the Java perspective,
The package explorer goes to the bottom of the screen. but on the Team Sync Perspective, that I want to stay on, I can't get the Project explorer view to go to the bottom of the screen (and I know one is the package and one is the project explorer, I tried adding package explorer to the sync perspective and it also doesn't show up how I want).
Team Sync Perspective:
Does anyone know how to do what I'm asking? I've googled plenty and can't find the answer. I'm assuming it's simple and I just can't find the steps...
See this animated gif to rearrange views in a perspective. Left click on view's title bar and drag and drop the view wherever you need it.
Refer this help guide

package explorer is broken

this is what I`ve done
I clicked on a project with right button and I`ve selected open in new window. I had 2 windows. First I've closed the primary one, then the new one. After that every time when I run eclipse the project that I've selected to open in new window was the default one. My package explorer every time was in it and I had to click back. I just deleted this project and now I can't navigate in package explorer. It is still set to this project but I can't go back. What can I do ? How can I select the basic package explorer view ?
There should be an Up one level or a Back button enabled on the Package explorer view toolbar - I am not talking about the main toolbars similar buttons but one just under the view header. These buttons shall allow you to return to the original level with multiple projects visible.
This is the Up One Level button that Zoltan is referring to:
Symptom:
The package explorer dialog looks as if you have drilled down into an end node but the dialog is blank and there is no "Up One Level"/"Back Button" to click.
Solution:
Ensure eclipse is not running
Delete the following file:
workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
Start Eclipse
The workbench.xml file contains settings for the state of the package explorer among other things. I suspect that the package explorer settings get corrupted somehow.
Top right there is ViewMenu option menu (triangle downside oriented) - try some options there, or click project explorer tab(top left) and try refresh etc. It is hard to see what exactly happened to you.
In Eclipse, Window → Reset Perspective...

Detached windows in Eclipse, is this possible?

Is there a way (plugin) in Eclipse to open detached windows which can be put on separate monitors: e.g one monitor will have my source, second threads and variables? The feature is in IntelliJ.
Yes. From the "Window" menu select "New Window". You can also drag the tabs off of the main window and a new window with just that tab will be created.
If you want a window with just the source code by itself, dragging the tab with the source in it won't work. What you can do is create the new window, drag the source over and minimize any other existing tabs within the new window to essentially leave a "source code only" view. You should be able to save this as a perspective and name it "Editor Only". This is somewhat cumbersome to setup, but once you have the perspective saved it should be pretty easy to get in and out of.
This is available in Helios and possibly earlier versions.
You can right-click on the title of any "View" and choose "Detach", this way you won't need two mail windows.