Eclipse will not show files in package explorer

I don’t know what went wrong because it worked before, but all of a sudden I have no files in my eclipse package explorer.

The workspace path displays correctly and the file permissions are correct.

Can anyone think about what happened?

+11
source share
8 answers

I had the same problem (it probably occurred when I canceled copying to the Dropbox folder). All I had to do was click File β†’ Import β†’ General β†’ Existing Projects into Workspace and select the missing projects in the window that appeared.

+10
source

Bypass

  • Create an empty workspace
    • Go to (File> Switch to Workstation> Other)
    • Clik Browse> Create New Folder
    • Click "OK" in the viewport.
    • Click ok in the workspace creation window.
  • Import an existing project into a new workspace
    • Go to file> Import
    • Click General> Existing Project in Workspace.
    • Click "Next"
    • Review and selection of the previous project
    • Click Finish

Congrats! Now you can see your project in the package explorer by importing it.

+3
source

Project Explorer β†’ click on "View Menu" View Menu -> Top level items β†’ Click on "Projects" Projects

+2
source

I don’t know what causes the problem, but found a way to return the files back to the package explorer.

If you go along the path to your workspace and find your projects, you can pack them all into a zip archive file, and from this zip archive file you can import your projects again using File β†’ Import β†’ General β†’ Existing Projects into Workspace File β†’ Import β†’ General β†’ Existing Projects into Workspace .

I don’t know what causes the problem, but in my case, I think it has something to do with the fact that my workspace is in the dropbox folder.

ps. I don’t know if you can take more than one project into one zip file and make it work, I tried only one pr project. ZIP file, but it should not matter.

+1
source
  • Refresh Project
  • If this does not help, close and reopen the project. enter image description here
+1
source

I started the wrong eclipse installation. When I started the correct installation, my code appeared normally. I have both C ++ and Java EE installed.

0
source

Just update all projects, you can see all the missing files after importing from the workspace.

0
source

1) Make sure that you are using the correct workspace.

2) Select your "workspace" -Folder "/ YourWorkspace", NOT the folder of your project "/ YourWorkspace / yourProject"

Or delete your project from your "YourWorkspace> /. Metadata /.plugins/org.eclipse.core.resources/.projects/PROJECTNAME/.location"

and restart.

Hope this helps

0
source

Source: https://habr.com/ru/post/909038/


All Articles