Skip to main content



      Home
Home » Newcomers » Newcomers » Package/Project Explorer did not show all files in project??(src/main/resources, WEB-INF/classes and other files missing....)
Package/Project Explorer did not show all files in project?? [message #522963] Wed, 24 March 2010 12:00 Go to next message
Eclipse UserFriend

I opened my Web Application project in Eclipse. There are missing directories and files on my Package Explorer view as well as Project Explorer view.

But, when I searched for those files (within the project itself), they came up in the Search Result and I could click to go to those files.

Missing directories (not showing up on the Package Explorer directory structure) include src/main/java, src/main/resources, WEB-INF/....,etc.

Can anyone help, please?

Many Thanks in advance.
Re: Package/Project Explorer did not show all files in project?? [message #522983 is a reply to message #522963] Wed, 24 March 2010 12:47 Go to previous messageGo to next message
Eclipse UserFriend
On 3/24/2010 10:00 AM, Mimi Tam wrote:
>
> I opened my Web Application project in Eclipse. There are missing
> directories and files on my Package Explorer view as well as Project
> Explorer view.
>
> But, when I searched for those files (within the project itself), they
> came up in the Search Result and I could click to go to those files.
>
> Missing directories (not showing up on the Package Explorer directory
> structure) include src/main/java, src/main/resources, WEB-INF/....,etc.
>
> Can anyone help, please?
>
> Many Thanks in advance.

I've seen this too, especially for library subdirectories, rarely or
never for some of those you list here.

Note that the Navigator view (Window -> Show View -> Navigator) will
always reliably show filesystem entities in your project. I always keep
that view's tab in the same pane as my Package Explorer.

Hope this helps,

Russ
Re: Package/Project Explorer did not show all files in project?? [message #522984 is a reply to message #522983] Wed, 24 March 2010 12:49 Go to previous messageGo to next message
Eclipse UserFriend
On 3/24/2010 10:47 AM, Russ Bateman wrote:
> On 3/24/2010 10:00 AM, Mimi Tam wrote:
>>
>> I opened my Web Application project in Eclipse. There are missing
>> directories and files on my Package Explorer view as well as Project
>> Explorer view.
>>
>> But, when I searched for those files (within the project itself), they
>> came up in the Search Result and I could click to go to those files.
>>
>> Missing directories (not showing up on the Package Explorer directory
>> structure) include src/main/java, src/main/resources, WEB-INF/....,etc.
>>
>> Can anyone help, please?
>>
>> Many Thanks in advance.
>
> I've seen this too, especially for library subdirectories, rarely or
> never for some of those you list here.
>
> Note that the Navigator view (Window -> Show View -> Navigator) will
> always reliably show filesystem entities in your project. I always keep
> that view's tab in the same pane as my Package Explorer.
>
> Hope this helps,
>
> Russ

Oh yeah, I forgot...

Your src/... subdirectories are likely going to be subsumed underneath
single, complex package objects rather than subdirectories (subfolders).
This is for convenience--not having to click ad nauseam down to reach
your source files.
Re: Package/Project Explorer did not show all files in project?? [message #523018 is a reply to message #522963] Wed, 24 March 2010 14:56 Go to previous messageGo to next message
Eclipse UserFriend

Thank you so much for the info, Russ.

I got the directory structure back but a whole lot of files are grayed-out indicating disabled. However, I could access them fine.

Hmmmm, pretty curious....

Thanks again...
Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #523085 is a reply to message #523018] Wed, 24 March 2010 20:35 Go to previous messageGo to next message
Eclipse UserFriend

My Package Explorer view AND my Navigator view are both displaying the project directory structure with missing files and directories.

This problem never went away completely and its hit and miss!? It is seriously affecting my work. I do not at any given point have access to all the files in my project.

Any ideas and help would be greatly appreciated.



Re: Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #523092 is a reply to message #523085] Wed, 24 March 2010 16:48 Go to previous messageGo to next message
Eclipse UserFriend
Mimi Tam wrote:
>
> My Package Explorer view AND my Navigator view are both displaying the
> project directory structure with missing files and directories.
>
> This problem never went away completely and its hit and miss!? It is
> seriously affecting my work. I do not at any given point have access to
> all the files in my project.
>
> Any ideas and help would be greatly appreciated.
>
>
>
>
Perform a refresh on the project to see if that helps. Select the
project and use File->Refresh from the menu.
Re: Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #523308 is a reply to message #523085] Thu, 25 March 2010 16:31 Go to previous messageGo to next message
Eclipse UserFriend
On 3/24/10 8:35 PM, Mimi Tam wrote:
>
> My Package Explorer view AND my Navigator view are both displaying the
> project directory structure with missing files and directories.
>
> This problem never went away completely and its hit and miss!? It is
> seriously affecting my work. I do not at any given point have access to
> all the files in my project.
>
> Any ideas and help would be greatly appreciated.
>

As Russ already said, you should use the Navigator view if you want to
see an exact representation of the entire file structure of your
project. The Package Explorer and Project Explorer are *logical* views
of your project, with things hidden, grouped, highlighted, etc. in a way
that supposedly makes working easier and more efficient.
A lot of their behavior is configurable via the "View Menu" which are
accessed via the small downward-pointing triangle icon in the top-right
corner of the view panel.

Hope this helps,
Eric
Re: Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #524657 is a reply to message #523308] Thu, 01 April 2010 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Not sure if this is the problem, but if you use the "Task List" view of Eclipse, it will sometimes try to hide files that it thinks are not associated with a given task (i.e. any file that was not opened while you had a certain task selected as the current task). If you want Eclipse to stop hiding files in that case, you can just delete all tasks. There might be another way to make it not hide files with tasks, but I'm not sure what it is.
Re: Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #524670 is a reply to message #524657] Thu, 01 April 2010 14:24 Go to previous messageGo to next message
Eclipse UserFriend

Thank you very much for your response and the suggestion.

Due to another problem that I had, I had to recreate a new project to get around it with all the same files.

This time, I created it as a Maven Project instead a Dynamic Web Service which was my old project type. That worked for me.

I tested the solution by doing the reverse (i.e. to import/create the project in DWS) to see it is indeed the culprit.

In my case, it is.

Thanks again very much and I should have taken the time to post thissolution last night. Sorry.






Re: Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #524680 is a reply to message #524657] Thu, 01 April 2010 14:38 Go to previous messageGo to next message
Eclipse UserFriend
The Task List file-hiding is from the Task-Focused UI from the Mylyn project.
If you don't like it, I believe you can disable it from Preferences > Mylyn.

Brian.

troyevans1@msn.com wrote:
> Not sure if this is the problem, but if you use the "Task List" view of
Eclipse, it will sometimes try to hide files that it thinks are not associated
with a given task (i.e. any file that was not opened while you had a certain
task selected as the current task). If you want Eclipse to stop hiding files
in that case, you can just delete all tasks. There might be another way to
make it not hide files with tasks, but I'm not sure what it is.
Re: Still Problem --- Please help --Re: Package/Project Explorer did not show all files in project?? [message #524686 is a reply to message #524680] Thu, 01 April 2010 15:13 Go to previous message
Eclipse UserFriend

I see.

Many Thanks!
Previous Topic:Source not found yet again
Next Topic:Custom Key assignment ?
Goto Forum:
  


Current Time: Fri Nov 07 04:42:00 EST 2025

Powered by FUDForum. Page generated in 0.09747 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top