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


##########
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:
   @junichi11 not everything which is in property files is a user facing 
String. This is just a field which can be `true` or `false` - thats it. This is 
not going to be translated.
   
   `@Messages` is just a mechanism to pull some properties into the code, since 
maintaining property files can be error prone.



-- 
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: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to