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


##########
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);
+                Project p = 
ProjectManager.getDefault().findProjectOrFallback(fo);

Review Comment:
   When using _File/Project Groups..._ menu:
   
   <img width="234" height="342" alt="Project Groups..." 
src="https://github.com/user-attachments/assets/66e4ff62-da53-4380-8dd3-1690a8f3bafa";
 />
   
   Selecting the menu item opens a dialog
   
   <img width="477" height="301" alt="New group..." 
src="https://github.com/user-attachments/assets/ba4a896e-3cc2-42ff-9cf0-e4c592fe52c3";
 />
   
   and allows one to click the _New group..._ button to open another dialog. 
After choosing _Folder of Projects_ and Browse for it (that opens another 
dialog):
   
   <img width="940" height="420" alt="Browse for a folder" 
src="https://github.com/user-attachments/assets/5a24da77-40b4-4132-a847-4f6d4e2d4b23";
 />
   
   Only then one can click _"Create Group"_ button. Which **scans for all the 
projects** in the given folder and opens them in _Projects view_ (after closing 
all previous ones).
   
   ### No Projects Found
   
   It may happen that there are no projects in the created group. Leaving the 
_Projects View_ empty. That's very weird.
   
   With this one line change, the root of the folder is always opened: either 
as real project or as a _"fallback project"_.
   
   Works great with #9602 and its nesting capabilities.



-- 
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