Community
Participate
Working Groups
We should adjust the method to public static String getFormattedString(String key, Object... args) and adjust callers.
(In reply to Lars Vogel from comment #1) > We should adjust the method to public static String > getFormattedString(String key, Object... args) and adjust callers. No, it must not become public. Platform Text (and also JDT) manages NLS strings per package.
(In reply to Dani Megert from comment #2) > (In reply to Lars Vogel from comment #1) > > We should adjust the method to public static String > > getFormattedString(String key, Object... args) and adjust callers. > > No, it must not become public. Platform Text (and also JDT) manages NLS > strings per package. The method signature was copied from existing code, only new thing is Object... instead of Object[]
(In reply to Lars Vogel from comment #3) > (In reply to Dani Megert from comment #2) > > (In reply to Lars Vogel from comment #1) > > > We should adjust the method to public static String > > > getFormattedString(String key, Object... args) and adjust callers. > > > > No, it must not become public. Platform Text (and also JDT) manages NLS > > strings per package. > > The method signature was copied from existing code, only new thing is > Object... instead of Object[] OOps, I was looking at the class itself, which must remain package visible. The method is fine.
Gerrit change https://git.eclipse.org/r/101337 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=8773dabab911ce83b5a7a4d9a5661e932a3fea4d
In master now.