jtulach commented on code in PR #9650:
URL: https://github.com/apache/netbeans/pull/9650#discussion_r4155080729
##########
ide/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java:
##########
@@ -1304,7 +1304,7 @@ private static Set<Project> URLs2Projects(Collection<URL>
urls) {
FileObject dir = URLMapper.findFileObject(url);
if (dir != null && dir.isFolder()) {
try {
- Project p = ProjectManager.getDefault().findProject(dir);
+ Project p =
ProjectManager.getDefault().findProjectOrFallback(dir);
Review Comment:
One obvious usage of this new _"fallback project"_ functionality is opening
of projects on startup.
The files on disk may change since the NetBeans shutdown. Sometimes it
happens that original projects are no longer recognized even the original
directory path exists.
In such case it is still better to open the "fallback project" rather than
opening nothing.
--
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