JaroslavTulach commented on code in PR #9650:
URL: https://github.com/apache/netbeans/pull/9650#discussion_r4176911012
##########
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:
- These options aren't even visible in non-Java projects
- need 86be29e75c6f to make them appear
- then the support work on JDK 25 in empty directories as well as non-Java
projects
<img width="1113" height="909" alt="image"
src="https://github.com/user-attachments/assets/0a4dae49-f71a-4007-9c5e-91f4e7c5dd0c"
/>
- these fixes in _Java File Launcher_ deserve their own PR: #9666
--
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