junichi11 commented on code in PR #6974:
URL: https://github.com/apache/netbeans/pull/6974#discussion_r1458106248


##########
java/java.file.launcher/src/org/netbeans/modules/java/file/launcher/queries/MultiSourceRootProvider.java:
##########
@@ -67,9 +67,12 @@
     @ServiceProvider(service=ClassPathProvider.class, position=9_999),
     @ServiceProvider(service=MultiSourceRootProvider.class)
 })
+@Messages({
+    "SETTING_EnableMultiSourceRoot=false"
+})
 public class MultiSourceRootProvider implements ClassPathProvider {
 
-    public static boolean DISABLE_MULTI_SOURCE_ROOT = false;
+    public static boolean DISABLE_MULTI_SOURCE_ROOT = 
!"true".equals(Bundle.SETTING_EnableMultiSourceRoot());

Review Comment:
   Does this work correctly if someone translates the messages?
   Should we also add `"true"` to `@Messages`?



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