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


##########
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:
   > Jesse (probably) wanted to keep compatibility with the prior state
   
   Right. I only dimly recall, but basically the non-group was treated as a 
pseudo-group with its own persistent list of projects, just like the IDE prior 
to the introduction of the group concept.
   
   > 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
   
   Seems intuitive enough.



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