Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Subfolders do not appear in the project explorer after creation
Subfolders do not appear in the project explorer after creation [message #66435] Tue, 24 June 2003 20:39 Go to next message
Eclipse UserFriend
Originally posted by: lebowitz.finaltouch.com

I've written some code to create some file subdirectories. The object is to
create the following:

|_ <project>|
|__WEB-INF|
|__src
|__classes
|__lib

The following snippet is what I'm using...
try {

webFolder = project.getFolder("WEB-INF");

webFolder.create(false, true, null);

if (webFolder.exists()) {

source = webFolder.getFolder("src");

source.create(false, true, null);

source.getParent().refreshLocal(IResource.DEPTH_INFINITE, null);

classes = webFolder.getFolder("classes");

classes.create(false, true, null);

classes.getParent().refreshLocal(

IResource.DEPTH_INFINITE,

null);

library = webFolder.getFolder("lib");

library.create(false, true, null);

library.getParent().refreshLocal(

IResource.DEPTH_INFINITE,

null);

}

}

The src, classes and lib folders appear correctly on the local file system,
but they never appear in the Java Perspective after they're created. Can
someone indicate why this happens and what I should do to correct the
problem?



Rob
Re: Subfolders do not appear in the project explorer after creation [message #66734 is a reply to message #66435] Wed, 25 June 2003 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Robert J. Lebowitz wrote:

>I've written some code to create some file subdirectories. The object is to
>create the following:
>
>|_ <project>|
> |__WEB-INF|
> |__src
> |__classes
> |__lib
>
%<

>The src, classes and lib folders appear correctly on the local file system,
>but they never appear in the Java Perspective after they're created. Can
>someone indicate why this happens and what I should do to correct the
>problem?
>
In earlier releases there were problems in the Package Explorer related
to big letters and dashes in the folder name. Do you see the folders in
the Navigator? Do you see the folders in the Java perspective if you
create them via UI (i.e. use File > New)?

Dani
Re: Subfolders do not appear in the project explorer after creation [message #67716 is a reply to message #66734] Thu, 26 June 2003 00:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lebowitz.finaltouch.com

> In earlier releases there were problems in the Package Explorer related
> to big letters and dashes in the folder name.

Unfortunately, all of these folder names are in lower case, and none uses
dashes.

>Do you see the folders in
> the Navigator? Do you see the folders in the Java perspective if you
> create them via UI (i.e. use File > New)?
>
Well, sort of. If I try to create the subfolders using the intrinsic
File->New approach, they appear as empty packages within the project tree in
the Java navigator, rather than as subfolders of WEB-INF.

I found this a bit peculiar as well. surely is should be possible to create
folders with subfolders to hold, say, resources?

Rob
Re: Subfolders do not appear in the project explorer after creation [message #67858 is a reply to message #67716] Thu, 26 June 2003 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Robert J. Lebowitz wrote:

>>In earlier releases there were problems in the Package Explorer related
>>to big letters and dashes in the folder name.
>>
>>
>
>Unfortunately, all of these folder names are in lower case, and none uses
>dashes.
>
So, you say that you misspelled "WEB-INF" and it is actually
"web<something>inf"?

>>Do you see the folders in
>>the Navigator? Do you see the folders in the Java perspective if you
>>create them via UI (i.e. use File > New)?
>>
>>
>Well, sort of. If I try to create the subfolders using the intrinsic
>File->New approach, they appear as empty packages within the project tree in
>the Java navigator, rather than as subfolders of WEB-INF.
>
Can you list the exact steps? Are you sure you selected the folder
"WEB-INF" when you created the subfolder?
What about the Navigator related question I asked?

What build version are you using?


Dani
Re: Subfolders do not appear in the project explorer after creation [message #68194 is a reply to message #67858] Thu, 26 June 2003 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lebowitz.finaltouch.com

> So, you say that you misspelled "WEB-INF" and it is actually
> "web<something>inf"?
>
No... sorry... I didn't think about the WEB-INF folder since it appears in
the navigator everytime, I was concerned about the subfolders src, classes
and lib that weren't appearing.


> What build version are you using?
>
2.1

Last night I made some additions to my code, and lo and behold, the three
missing folders suddenly appeared. Previously the folders were empty, and
simply "folders", but now I set the classes folder as the output location of
the project, and add src as a ClasspathEntry for the project, and the
folders all appeared in the Java navigator.

I still think there is some kind of bug here; the folders should appear in
the navigator without having to specify their other roles, no?

Rob
Re: Subfolders do not appear in the project explorer after creation [message #68555 is a reply to message #68194] Fri, 27 June 2003 07:58 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Robert J. Lebowitz wrote:

>>So, you say that you misspelled "WEB-INF" and it is actually
>>"web<something>inf"?
>>
>>
>>
>No... sorry... I didn't think about the WEB-INF folder since it appears in
>the navigator everytime, I was concerned about the subfolders src, classes
>and lib that weren't appearing.
>
>
>
>
>>What build version are you using?
>>
>>
>>
>2.1
>
The problem with big letters and dashes in the name has been fixed in 2.1.

>
>Last night I made some additions to my code, and lo and behold, the three
>missing folders suddenly appeared. Previously the folders were empty, and
>simply "folders", but now I set the classes folder as the output location of
>the project, and add src as a ClasspathEntry for the project, and the
>folders all appeared in the Java navigator.
>
>I still think there is some kind of bug here; the folders should appear in
>the navigator without having to specify their other roles, no?
>
It depends. I assume that in your Package Explorer (there is no Java
navigator - at least no in the standard Eclipse SDK) you have a filter
active which filters empty packages ;-)

Dani
Previous Topic:Automatic JAR Creation
Next Topic:JAXP upgrade problem with V3 M1
Goto Forum:
  


Current Time: Sat Jul 13 00:30:12 GMT 2024

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

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

Back to the top