jtulach commented on code in PR #9631:
URL: https://github.com/apache/netbeans/pull/9631#discussion_r4084748962


##########
ide/projectui/src/org/netbeans/modules/project/ui/groups/DirectoryGroup.java:
##########
@@ -77,7 +77,7 @@ protected void findProjects(Set<Project> projects, 
ProgressHandle h, int start,
         }
         if (fo != null && fo.isFolder()) {
             try {
-                Project p = ProjectManager.getDefault().findProject(fo);

Review Comment:
   - This change makes sure the "top most folder" of each `DirectoryGroup` is 
visible
      - e.g. the folder selected in _Open Folder as Workspace_ is always visible
      - thanks to #9602 the "top most folder" is the first project in the list
      - ... as it has the shortest path and all other projects are nested
   - if the root folder is recognized as a regular NetBeans project...
      - ...then the behavior is the same as it was by now
   - if the root folder isn't real project, a `GenericPrj` is created for it
   - if there is no project beneath the root folder, then one gets just a 
simple "files view" of the root project:
   
   <img width="443" height="291" alt="Files View of a Folder" 
src="https://github.com/user-attachments/assets/29c88203-7eef-4e8d-9adf-f633d4b70c83";
 />
   
    



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to