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


##########
java/java.file.launcher/src/org/netbeans/modules/java/file/launcher/SingleSourceFileUtil.java:
##########
@@ -95,9 +98,18 @@ public static boolean isSupportedFile(FileObject file) {
         try {
             FileObject dir = file.getParent();
             File dirFile = dir != null ? FileUtil.toFile(dir) : null;
-            return !MultiSourceRootProvider.DISABLE_MULTI_SOURCE_ROOT
-                    && FileOwnerQuery.getOwner(file) == null
-                    && !file.getFileSystem().isReadOnly()
+            if (MultiSourceRootProvider.DISABLE_MULTI_SOURCE_ROOT) {
+                return false;
+            }
+            Project owner = FileOwnerQuery.getOwner(file);

Review Comment:
   - Shared utility introduced in c22ea60bd276 
   - but I don't understand the test case
   - I tried `pack.A` referencing `pack.B` 
   
   <img width="950" height="508" alt="pack.A and B" 
src="https://github.com/user-attachments/assets/51ed7f69-b320-4483-8f54-6f5a6103ee1e";
 />
   
   - however that doesn't work in any previous version of NetBeans either



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