This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256240 - Favorites view shows duplicate content for ZIP files
Summary: Favorites view shows duplicate content for ZIP files
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Favorites (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-28 21:49 UTC by matthias42
Modified: 2015-10-28 21:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing problem (79.46 KB, image/png)
2015-10-28 21:49 UTC, matthias42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matthias42 2015-10-28 21:49:00 UTC
Created attachment 157032 [details]
Screenshot showing problem

While I looked through bug 256015 I noticed a problem in the favorites view. This is visible for any ZIP like filetype (jar, war, openoffice documents, ...). 

To reproduce it, it is helpful to open a jar from project view and compare that to the favorites view of the same jar. In the attached screenshot I did this for a jar from my local maven repository.

The java platforms module provides a different children view for jars, which results in a package view. This works correctly in project view (no folders are shown there, only "packages"), in the favorites view this breaks from the second level down.

In the sample I opened the "package" org.apache.derby in both cases. As shown in the projects view this package only contains the file modules.properties. The subfolders are exposed as package entries on the toplevel of the jar, but in the favorites view the subfolders are shown.

I think the best thing would be if favorites would show the same view as projects view. The second best would be if favorites only showed a folder structure. The bug is, that in this case mix of both approaches is visible.