Community
Participate
Working Groups
I would like to see an additional getString method generated from the string externalization support, when choosing the resource bundle variant. The new method should support the varargs, when java 5 compiler compliance is active: import javax.text.MessageFormat; public static String getString(String key, Object... args) { if (args.length > 0) { return MessageFormat.format(getString(key), args); } else { return getString(key); } } The chang is requested with in the org.eclipse.jdt.internal.corext.refactoring.nls.AccessorClassCreator#createGetStringMethod(String) method.
If we decided to support this, then we also have to adjust the other parts of the tooling (hyperlinking, hovering, finding broken externalized strings).
Why not starting step by step? It's just conveniens and that makes user happy.
Because we want to offer consistent tooling.
Created attachment 162386 [details] screenshot Wow! It's already supported.
Good ;-) It might already work but the different tools just have to be checked and updated if needed.
*** Bug 322892 has been marked as a duplicate of this bug. ***
*** Bug 413805 has been marked as a duplicate of this bug. ***