Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why won't Eclipse detect these files as part of my folder?

Tags:

java

eclipse

I've got a bunch of class files for a Java project, but it's not detecting them as part of the folder.

Finder: http://i.imgur.com/u1sMJ.png

Eclipse: http://i.imgur.com/EOXwG.png

It's annoying that I can't seem to access them.

like image 968
Doug Smith Avatar asked Oct 07 '12 21:10

Doug Smith


People also ask

How do I show hidden files in Eclipse?

Eclipse shows hidden files in the "Navigator" view. You can add that via Window->Show View->Navigator. With Eclipse 4.14 for Mac OS X: Window > Navigation > Show View Menu > Filters ans Customization, then after just uncheck . * resources.

How do I show all folders in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

How do I link to a folder in Eclipse?

To add a linked folder to your project, click File > New > Folder to display the New Folder dialog box. Click Advanced, select Link to alternate location (Linked Folder), and then navigate to the folder that you want to link to.


2 Answers

Right click the project, and click "Refresh". That should solve it. You can also go to the preferences and enable "Refresh by native hooks or polling" and "refresh on Access" in General > Workspace

like image 103
DankMemes Avatar answered Oct 11 '22 08:10

DankMemes


If you copy files into the project folder via the Finder (or Windows Explorer), then by default you need to refresh Eclipse in order to sync it to the underlying file system. Alternatively, you can avoid copying files into the project outside of Eclipse and instead use Eclipse's Navigator (similar to Finder) or Package Explorer views -- you can drag from the file system and drop into the Navigator view, for example.

There are also a couple of Refresh options in Eclipse > Preferences > General > Workspace which may help to automatically sync things.

like image 28
martinez314 Avatar answered Oct 11 '22 09:10

martinez314