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


##########
ide/projectui/src/org/netbeans/modules/project/ui/groups/Group.java:
##########
@@ -184,7 +184,7 @@ public static void setActiveGroup(Group nue, boolean 
isNewGroup) {
             }
         } else {
             OpenProjectListSettings settings = 
OpenProjectListSettings.getInstance();
-            settings.setOpenProjectsURLsAsStrings(nue != null ? 
nue.projectPaths() : getProjectPathsByPreferences(noneGroupPref));
+            settings.setOpenProjectsURLsAsStrings(nue != null ? 
nue.projectPaths() : Collections.emptyList());

Review Comment:
   Here is an ideological justification of the behavioral change of 
`--close-group` with an outline of the future:
   
   ### Group Centric View 
   
   - Let build NetBeans projects and file view around the concept of a 
[ProjectGroup](https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-projectuiapi-base/org/netbeans/api/project/ui/ProjectGroup.html)
 . 
   - a group is a set of projects (same as now) with few implementations 
`AdhocGroup`, `DirectoryGroup`, etc.)
   - there is always **a single opened project group** in the NetBeans IDE
      - there is a way to listen and obtain the current group
   - users can create new groups and switch between existing groups
   - the default group (**none** in current implementation) is **switch 
non-persistent**
       - e.g. when switching to it, it starts empty, as a fresh group
       - it keeps its project list on shutdown/restart however
   - developers can query the current group, observe its changes and get list 
of `Project` in the current group
       - there already is 
[getActiveProjectGroup()](https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-projectuiapi-base/org/netbeans/api/project/ui/OpenProjects.html#getActiveProjectGroup())
       - created by 6a3ae0aed18ca3e6a7af31901311ee63bd798351used only by Maven 
support for not clear reasons
       - let's enhance 
[ProjectGroup](https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-projectuiapi-base/org/netbeans/api/project/ui/ProjectGroup.html)
 with additional getters to look alike 
[workspace](https://code.visualstudio.com/api/references/vscode-api#workspace) 
and serve similar purpose
       - where `workspaceFolders` would be `getProjects()`, `isTrusted()`, 
maybe `textDocuments` to deal with opening previously opened editor views on 
group switch
   - shift the UI towards the _group centric_ view while [keeping the 
flexibility](https://github.com/apache/netbeans/pull/9631#issue-5528052137) for 
expert users



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