Eclipse Mars - imported projects don't show up in Project/Enterprise Explorer - eclipse

I currently have 48 projects in my workspace. All are cloned git repos that had existing projects that were then imported into Eclipse.
The last three repos that I've imported into Eclipse have imported and migrated successfully but don't show up in either the Project or Enterprise Explorer views. I can see that they exist in the .metadata/.plugins/org.eclipse.core.resources/.projects folder.
I can search the projects and create a working set, and I can add the EAR files to the server, and I can open the files, but I can't do anything that I would normally do from the Project Explorer, including viewing their properties or deleting them.
I had thought that Eclipse might have an upper limit on how many projects could be viewed, but my co-worker says she has 107 projects currently in her workspace.

Maybe the projects are hidden by an active Working Set or by Focus on Active Task.
From the first link:

How to change Eclipse's "Project Explorer" "Filters and Customization" view settings to force projects and files and folders to show up and not be hidden, such as nested projects
Tested in Eclipse Version 2021-06 (4.20.0), Build ID: 20210612-2011 on Linux Ubuntu 18.04.
Quick Summary
Go to the "Project Explorer" tab, click the 3 vertical dots in the top-right corner of that pane, then go to "Filters and Customization...", as shown here:
Uncheck the box for "Nested Projects: hide top-level project if shown as nested" and "Nested Projects: hide folders when project is shown as nested", and click "OK":
Details
I'm having this exact problem in Eclipse Version 2021-06 (4.20.0), Build ID: 20210612-2011 on Linux Ubuntu 18.04.
It turns out it's because of the Project Explorer "Filters and Customization..." settings, as I learned from #howlger's answer.
After adding a code repository directory as a project, I can see it showing up in the deprecated "Navigator" tab, shown as "Navigator (Deprecated)" in Eclipse here (I have blurred images for privacy):
However, it does not show up in the "Project Explorer" tab, which is shown below!
The problem is that the "Project Explorer" tab's "Filters and Customization..." settings are filtering out this project and not showing it. In my particular case, that is because the project I am adding is a subrepo within another git repo, which means it is a project nested within another Eclipse project, and my view settings are mistakenly set to exclude all "nested projects". Your case or reason may be different, but in either case, if your project is not showing up in your "Project Explorer" tab, then it is likely because your "Filters and Customization" settings are set to exclude it from view.
To fix this for my case, go to the "Project Explorer" tab, click the 3 vertical dots in the top-right corner of that pane, then go to "Filters and Customization...", as shown here:
Next, click the "Pre-set filters" tab, then scroll down and uncheck the box for "Nested Projects: hide top-level project if shown as nested". I recommend you also uncheck the box for "Nested Projects: hide folders when project is shown as nested", but I'm not 100% sure what that one does, as unchecking the other box alone caused my project to show up. Here is a screenshot, with the appropriate areas highlighted in yellow:
Any of the items in this list will be hidden from view in the "Project Explorer" tab if their box is checked. So, go through the list in detail and uncheck anything else you might see fit, if applicable. I took a look and left all the rest of my view settings there as-is.
Click the "OK" button when done, and voila!--my nested and previously-added project now shows up in the "Project Explorer" view!
NB: due to some sort of bug in Eclipse, you may have to repeat the above process every time you close and reopen Eclipse. :( But, you can probably do it faster now from the "Recent Filters" section of the 3-dots menu.
Update: it looks like changing the "Projects Presentation" setting from "Hierarchical" to "Flat" blocks this bug and prevents you from having to fix the "Filters and Customization" setting every time you re-open Eclipse.
Here is how: click the 3 vertical dots menu in the "Project Explorer" window --> "Projects Presentation" --> choose "Flat", as shown below:
Other references
Here is the relevant official Eclipse documentation on this: https://help.eclipse.org/: Showing or hiding files in the Project Explorer view:
Showing or hiding files in the Project Explorer view
You can choose to hide system files or generated class files in one of the navigation views. (System files are those that have only a file extension but no file name, for example .classpath.)
On the toolbar for the Project Explorer, click the Menu button Menu button [3 vertical dots] to open the drop-down menu of display options.
Select Filters and Customization..,.
In the dialog box that opens, select the Filters tab and then select the checkboxes for the types of files that you want to hide or define your own name-based filters in the User filters tab.
In addition, you can restrict the displayed files to a working set.
On the toolbar for the Project Explorer, click the Menu button [3 vertical dots] to open the drop-down menu of display options.
Choose Select Working Set...
Select an existing working set from the list or create a new one by selecting New...
My Q&A on how to blur images in GIMP: Graphic Design: How do I do a privacy blur on a section, selection, or region of an image in GIMP?
My personal Eclipse setup document: Eclipse setup instructions on a new Linux (or other OS) computer: Troubleshooting

Related

Eclipse, "add to working set"

Since Eclipse Mars? there has been always a context menu on projects, to add the current selection to a working set. This option seems to have disappeared in Eclipse Oxygen.
How can I add one or more selected projects to a working set?
This is how I access the working sets:
It seems like this is now called "Assign Working Sets..." and is found in the same group as "Refresh" and "Close" in the projects' context menu.
Alternatively, you can just drag & drop the selected projects into the desired working set, provided that you are showing working sets as "Top Level Elements".
(Assuming this is about the "Package Explorer" view; the "Project Navigator" seems not to have that feature, but here you can still use drag & drop.)
This menu item is still present in Package Explorer (JDT).
No such item is available in Project Explorer (Core).
Please leave a vote for the bug: Assign Working Sets in Project Explorer, Navigator

No projects displaying in Eclipse Project Explorer

I'm using Eclipse Neon.3 Release (4.6.3). For about a week, everything keeps disappearing from Project explorer, Navigator, and Package Explorer. In Project Explorer, if I click on the menu and then Deselect Working Set, the list comes back, but a couple hours later it will disappear again.
I saw a few solutions that say to go to File->Import->General->From Existing Project and import the project again, but I can't do that because it says the projects are already imported, I just can't see them. I was also trying to avoid creating a new workspace because then I lose all my settings and perspective layouts.
Sounds like you accidentally set the "Top Level Elements" to be Working Sets instead of projects. If you do not have any Working Sets, the view will be empty.
If you click the down arrow on the right of the four buttons, you'll have the option to select "Top Level Elements" > "Projects".

How to remove additional class drop down in Eclipse Project Explorer view?

In the Project Explorer view of Eclipse Luna, there's an additional drop down for Java files which represents the class inside the file (the green C icon). It expands when I double click to open a class. I don't need this there. Is there a way to filter this out?
Uncheck Preferences / Java / Appearance / "Show members in Package Explorer" checkbox.
It affect both Package and Project explorer.
Preferences windows with that checkbox
It's possible if you use Package Explorer instead of Project Explorer: go to prefs, Java, Appearance and disable "Show members in Package Explorer".
You can disable various elements in the explorer tree via the View config toolbar button (small white triangle on the toolbar just below the Project Explorer tab); select Customize View... then the Content tab; there you can disable, for example, Java Elements. But doing so will hide all Java-related elements from the Project Explorer tree; if you want that, at that point you should just use the Navigator view instead of Project Explorer. Navigator is just a file-system view of the projects.
There is an option for this. Click to three dots on the right top corner in Project Explorer window, click to "Filters and Customisation", then click to "Content" tab. You will see like that things:
Uncheck "Java Elements" (PHP Elements for Eclipse PDT) then clik to OK button. Then you will see that dropdown triangle shit goes to the hell...

Eclipse does not display /target/classes folder in "project explorer view"

This is what it looks like in project->properties->java Build Path-> source tab . Don't know what I am missing but /target/classes folder is not showing up in "project explorer" view. Can anyone help?
The Project Explorer view defaults to not showing the output folders.
To change this click the small down arrow at the top right of the view and choose the Customize View option. Uncheck the 'Java output folders' option in the filters list.
Note that from Eclipse 2019-12 onwards the small down arrow is replaced by a 'hamburger' menu (three vertical dots).
Try this
Click on Filters and customization and uncheck *.class resources

How can I get Eclipse to show .* files?

By default, Eclipse won't show my .htaccess file that I maintain in my project. It just shows an empty folder in the Package Viewer tree. How can I get it to show up? No obvious preferences.
In the package explorer, in the upper right corner of the view, there is a little down arrow. Tool tip will say view menu. From that menu, select filters
From there, uncheck .* resources.
So Package Explorer -> View Menu -> Filters -> uncheck .* resources.
With Eclipse Kepler and OS X this is a bit different:
Package Explorer -> Customize View -> Filters -> uncheck .* resources
For Project Explorer View:
1. Click on arrow(View Menu) in right corner
2. Select Customize View... item from menu
3. Uncheck *.resources checkbox under Filters tab
4. Click OK
--
Eclipse Juno
Cory is correct
# If you're using Eclipse PDT, this is done by opening up the PHP explorer view
I just spent about half an hour looking for the little arrow, until I actually looked up what the 'PHP Explorer' view is. Here is a screenshot:
I'm using 64 bit Eclipse for PHP Devleopers
Version: Helios Service Release 2
It cam with RSE..
None of the above solutions worked for me... What I did was similar to scubabble's answer, but after clicking the down arrow (view menu) in the top of the RSE package explorer I had to mouseover "Preferences" and click on "Remote Systems"
I then opened the "Remote Systems" nav tree in the left of the preferences window that came u and went to "Files"
Underneath a list of File types is a checkbox that was unchecked: "Show hidden files"
CHECK IT!
1. From Package Explorer open the Filters... dialog:
2. Then uncheck .* resources option:
On Mac:
Eclipse -> Preferences -> Remote Systems -> Files -> click Show Hidden Files.
In your package explorer, pull down the menu and select "Filters ...". You can adjust what types of files are shown/hidden there.
Looking at my Red Hat Developer Studio (approximately Eclipse 3.2), I see that the top item in the list is ".* resources" and it is excluded by default.
Spring Tool Suite 4
Version: 4.9.0.RELEASE
Build Id: 202012132054
For Mac:
In my case, I wanted to see .htaccess files, but not all the other .* resources.
In Zend Studio for Eclipse, in PHP Explorer (not Remote System Explorer), click the downward facing arrow (next to the left/right arrows).
Choose Filters.
Uncheck .* resources
In the "Name filter patterns" area, type the filenames you want to ignore.
I used:
.svn, .cvs, .DS_Store, .buildpath, .project
If using Zend Studio, same arrow, go to RSE view, click on the downward facing arrow, hit preferences, and then check show hidden files.
That did the trick for me.
If you're using Eclipse PDT, this is done by opening up the PHP explorer view, then clicking the upside-down triangle in the top-right of that window. A context window appears, and the filters option is available there. Clicking the Filters menu option opens a new window, where .* files can be unchecked, thus allowing the editing of .htaccess files.
I searched forever for this, so I'm sorta answering my own question here. I'm sure someone else will have the same problem too, so I hope this helps someone else as well.
Eclipse shows hidden files in the "Navigator" view. You can add that via Window->Show View->Navigator.
Preferences -> Remote Systems -> Files -> Show hidden files
(make sure this is checked)
Follow steps 1, 2, and 3 in the figure below: