jtulach opened a new pull request, #9666: URL: https://github.com/apache/netbeans/pull/9666
- work on #9650 revealed [incorrectness of enablement](https://github.com/apache/netbeans/pull/9650#discussion_r4156334854) check > ... Java single-file support checks for `FileOwnerQuery.getOwner(file) == null` (`SingleSourceFileUtil.isSupportedFile`, and `MultiSourceRootProvider` for the classpath). So loose `.java` files in an opened non-Java project.... - When _Java single-file_ support checks for `FileOwnerQuery.getOwner(file) == null` then it disables itself in (for example) [C++ projects](https://github.com/apache/netbeans/pull/9650#discussion_r4167939143) - checking that I am in _no projects_ is not the right check and has to be changed - the right question is: **Am I outside of a Java project**? - per [mutual agreement](https://github.com/apache/netbeans/pull/9650#discussion_r4156403274) it: the right check is > Enable when not in a project with a Java `SourceGroup` - this PR changes the check, so the support is enabled in C++ light projects (for example) -- 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
