neilcsmith-net commented on code in PR #9666:
URL: https://github.com/apache/netbeans/pull/9666#discussion_r4183511117
##########
java/java.file.launcher/src/org/netbeans/modules/java/file/launcher/SingleSourceFileUtil.java:
##########
@@ -88,16 +91,39 @@ public static boolean isSingleSourceFile(FileObject fObj) {
return true;
}
+ /**
+ * Find a Java-like project that owns the file.
+ *
+ * @param file the file to find project for
+ * @return the project (if it has some Java sources) or {@code null}
otherwise
+ */
+ public static Project findJavaOwner(FileObject file) {
Review Comment:
Great! That fixes a key annoyance where the parent is the root checkout and
might have single source scripts, use them in GitHub workflows, etc.
--
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