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


##########
ide/projectapi.nb/src/org/netbeans/modules/projectapi/nb/NbProjectManager.java:
##########
@@ -212,6 +212,17 @@ public Mutex getMutex(
      */
     @Override
     public Project findProject(final FileObject projectDirectory) throws 
IOException, IllegalArgumentException {
+        return findProjectImpl(projectDirectory, false);

Review Comment:
   - Thanks Toni, that's a nice observation. Thanks also for the test. Adding 
it into the suite as 568b115a0a50.
   - however I don't share the test's vision of `FileOwnerQuery` not changing, 
quite opposite!
      - when a new module is enabled/installed that provides new project
      - it is normal that directories that were _non projects_ become projects
      - the _fallback project_ follows the same life cycle ...
      - ... once someone forces its creation over a _non project_, it becomes 
new project owning that directory
      - since then the `FileOwnerQuery` **must report the fallback project** as 
an owner
    - I also fixed `ProjectManager.isProject` check for _fallback projects_ - 
now the method returns `true` 



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