Bug 148657 - [render] Non-Java directories not rendered in .jar file
Summary: [render] Non-Java directories not rendered in .jar file
Status: RESOLVED DUPLICATE of bug 176210
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 148944
Blocks:
  Show dependency tree
 
Reported: 2006-06-26 10:24 EDT by Jerome Lanneluc CLA
Modified: 2007-03-09 06:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2006-06-26 10:24:58 EDT
I20060620 + JDT Core HEAD

After fixing bug 142530, I noticed that non-Java directories inside a .jar file are not rendered in the Package Explorer.

To reproduce:
1. Ensure you run with latest jdt.core
2. Create a Java project
3. Put the attached .jar file in bug 142530 on its build path
4. Expand the .jar file in the Package Explorer
Observe: The META-INF directory and the eclipse_bug/org.eclipse.bugs directory are not shown. (note this .jar file also contains files META-INF and eclipse_bug/org.eclipse.bugs that are correctly rendered).
Comment 1 Jerome Lanneluc CLA 2006-06-26 10:27:38 EDT
It is not obvious how to distinguish an IStorage representing a non-Java file and an IStorage representing a non-Java directory. I would suggest to use the fact that an IStorage representing a diretory has a full path with a traling separator (IPath#hasTrailingSeparator() is true).
Comment 2 Martin Aeschlimann CLA 2006-06-27 12:51:16 EDT
fixed > 20060627
Comment 3 Dani Megert CLA 2006-06-28 04:17:19 EDT
This is quite a hack. Can this please be revisited.
Comment 4 Dani Megert CLA 2006-08-08 05:21:09 EDT
Currently the label provider renders the full path but the original request is not fixed in JDT Core and captured in bug 148944.
Once bug 148944 is fixed the label provider hack needs to be reverted.
Comment 5 Dani Megert CLA 2006-08-08 05:21:36 EDT
.
Comment 6 Markus Keller CLA 2007-03-09 06:17:34 EST
Reopen to mark as dup.
Comment 7 Markus Keller CLA 2007-03-09 06:17:58 EST

*** This bug has been marked as a duplicate of bug 176210 ***