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


##########
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:
   ### It Works now!
   
   
   <img width="1113" height="909" alt="image" 
src="https://github.com/user-attachments/assets/0a4dae49-f71a-4007-9c5e-91f4e7c5dd0c";
 />



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