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 189446 - Display single top-level node in Files in case of nested projects
Summary: Display single top-level node in Files in case of nested projects
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2010-08-12 13:34 UTC by Jesse Glick
Modified: 2016-07-07 08:39 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-08-12 13:34:46 UTC
See bug #166270 comment #8 for some background.

Proposal: omit top-level nodes in Files corresponding to descendants (possibly indirect) of another top-level node. Thus, if an aggregator (pom-packaging) project were opened together with some or all of its component modules, there would be just one entry at top level; the same would apply to e.g. Ant-based EAR projects with nested EJBs and WARs. In such a case it might be useful to add some sort of notation to subfolders which are project directories showing the project display name in gray, e.g.

Files
-----
+ /home/jglick/src/stapler (Stapler POM)
|
+- core (Stapler)
|
+- groovy (Stapler Groovy module)
|
+- jelly (Stapler Jelly module)
|
+- jsp (Stapler JSP module)
|
+- pom.xml
|
+- src


Notes:

1. Select in Files would still work; you might be taken to a more deeply nested tree node than now. (The current behavior is to select the node starting from the nearest open ancestor.)

2. There would still be separate top-level items for external source roots. (Rarely used for Maven projects, but common for Ant-based projects "...from Existing Sources".)

3. If the POM in the above example were closed, but the four submodules remained open, the one top-level item would be replaced by four. Closing or reopening any of the submodules while the POM was open would have no visible effect in the Files tab.

4. VCS status (e.g. Subversion modification badges) would be displayed more naturally than is currently the case.

5. Length of node labels may be a problem for top-level nodes, since OS paths can be lengthy. This is already a potential problem in the case of external source roots but would now affect many more people. Could perhaps show just project display name as now, with the path available in a tool tip, or show path after the project name so that any truncated text is in the path part.
Comment 2 Milos Kleint 2012-11-30 07:30:06 UTC
(In reply to comment #1)
> Something like
> https://blogs.oracle.com/geertjan/entry/maven_integrated_view_for_netbeans ?

not entirely the same, in this issue we are dealing primarily folder structure alone (no Source Packages nodes etc)

Also none of this can be done on maven layer alone, but needs to be done on general level. The most important reason being the notion of opened vs closed projects. The IDE handles them differently.
Comment 3 Martin Balin 2016-07-07 08:39:16 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss