Get Eclipse to remember Package Explorer view - eclipse

When I close Eclipse it remembers which files I had opened in the editor and re-opens them when I start it up again next.
Is there a way to also have it remember which packages/projects I had expanded in the Package Explorer? When I reopen Eclipse, it just goes back to everything being collapsed and showing me only the list of projects.

Package Explorer (and Project Explorer) don't support this. The older (and less functional) Navigator view does remember.

Related

Eclipse: Preserve uncollapsed paths in package explorer on restart

I am a bit tired of reopening all the paths I am currently working on in my package explorer every time I restart eclipse.
Is there a way to tell eclipse to save my package explorer state i.e. not to collapse everything on closing?
When you toggle the "Link with Editor" button the path to your last used file will be restored.
Package Explorer does not save the tree state when it closes so there is no way that it can be restored.

remove project explorer from eclipse

I'm writing an Eclipse plugin and seem to have many issues with users using the plugin with the Project Explorer.
Is there a way to remove the Project Explorer from Eclipse so users won't be able to use it (not only hide it)? I provide the users with the Eclipse package so I can edit it and only then send it out.
Why is Project Explorer behaving so differntly than Package Explorer/Navigator?
Example of issues:
Double clicking on a file in the Project Explorer doesn't always open it. Right clicking on the file and choosing the Open option - works. F3 works as well. this issue seems related to the Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131326
My plugin has a tool bar that I set to be seen only when a project of my type is in focus. it works perfectly in Package and Navigator Explorers, but in Project Explorer, if a user points to a sub folder of the project, it is not recognized as my plugin's project and the tool bar does not appear.
Thanks!

Eclipse changed package view to folder view in Package Explorer?

I have the Problem that Eclipse shows all my packages as normal folders. I have to get back to the normal package View because in the folder view the most plugins like Windowbuilder are not working.
I already tried to change the Package Presentation -> Flat or Hierarchical no change.
I tried to add the folder or the Project as Source Folder but the he is using the he is using the first Folder as a Package and the subfolder also e.g.
the Folder
org
eclipse
wb
swt
tempuri
are shown as
org
eclipse.wb.swt
tempuri
but I need
org.eclipse.wb.swt
org.tempuri
does anyone have a solution for this?
thx for help
Michael
What you are looking for (at least in the Luna Release (4.4.0)) is the Package Explorer view instead of the Navigator view.
You can toggle it from the Window tab:
Window > Show Menu > Package Explorer
This Problem generally appears if you delete a folder and did not consider any adjustment on other structure under that folder. The best thing is to go to the package explorer and click on " Source > Build Path>use as source folder". Refresh the project and restart the eclipse.
I have been through this situation couple of times, and it always works for me. Sorry, if I didnt understand your question properly.
In Package Explorer tab, click the little triangle next to Link with Editor called View Menu, then choose Package Presentation > Hierarchical.

Eclipse Package Explorer Oddity

Recently whenever I open my workspace in Eclipse the Package Explorer has always defaulted to focusing on a single folder of all my projects/resource files. I've put up with this for a few months since I can just "Up to" to get back to the project level.
However, I'd like to get this sorted. Does anyone have any idea how I can stop Eclipse opening this specific folder as its default?
You've probably already found the solution by now, but I recently ran into the same problem and found a solution that seemed to work for me and thought I'd share.
Close Eclipse and open your workspace's workbench.xml file for edit:
gedit <yourEclipseWorkspaceDir>/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
Search the doc for the name of the folder your Package Explorer keeps defaulting to. This should be the value of the path attribute in a line like this:
<input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="<theOffendingFolder>" type="2"/>
Change the value of the path attribute to point to the desired folder, or delete that input line entirely if you want the Package Explorer to show you the default project level. Save the file and open Eclipse.
Maybe this is related to the files automatically opened when you start your workspace (because it was closed in that state) and the package explorer "Link with editor button". This button at the top right of package explorer view allows to synchronize the current visible file in the editor with the package explorer (personally I often use this feature but I know some of my colleagues hate it ;-)).
Hope this can help
Manu

How to prevent Eclipse from showing the opened file in package explorer

somehow I've ended up in a situation such that when I navigate through source files with Eclipse, the Eclipse always selects (and expands) the opened file with package explorer. With this I end up
losing my location on Package Explorer
Having my Package explorer expanded and pretty confusing.
With brief googling/exploring on the preferences I couldn't find this one..
Eclipse version is 3.4 if that happens to matter.
Thanks in advance,
Touko
Turn off the "Link with Editor" option in the Package Explorer toolbar.
(the left/right arrow icon, turned on here)
Select a source file, right click on it, choose "Open with" and then "Java Editor". The Java Editor should be the default after that for all java files.