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


##########
ide/projectapi.nb/src/org/netbeans/modules/projectapi/nb/NbProjectManager.java:
##########
@@ -489,11 +518,29 @@ public void clearNonProjectCache() {
                 LoadStatus.NO_SUCH_PROJECT.wrap(),
                 LoadStatus.SOME_SUCH_PROJECT.wrap(),
             }));
-            // XXX remove everything too? but then e.g. 
AntProjectFactorySingleton
-            // will stay while its delegates are changed, which does no good
-            // XXX should there be any way to signal that a particular
-            // folder should be "reloaded" by a new factory?
         }
+        MUTEX.postWriteRequest(() -> {
+            synchronized (dir2Proj) {
+                // check if FallbackProject is still needed
+
+                Iterator<Map.Entry<FileObject, Union2<Reference<Project>, 
LoadStatus>>> it = dir2Proj.entrySet().iterator();

Review Comment:
   - There are two UI actions in this PR to explicitly invoke 
`ProjectManager.findProjectOrFallback` proposed by this PR:
       - when [opening after 
start](https://github.com/apache/netbeans/pull/9650#discussion_r4155080729)
       - when creating [Folder of 
Projects](https://github.com/apache/netbeans/pull/9650#discussion_r4155126615) 
group
   - once the API changes proposed by this PR are integrated, there can be more 
_"explicit actions by the user" in the UI calling  
`ProjectManager.findProjectOrFallback`
   - how should such UI actions look like isn't subject of this PR



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