Author: sflanigan
Date: 2009-04-08 21:39:15 -0400 (Wed, 08 Apr 2009)
New Revision: 14614
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java
trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java
Log:
JBIDE-3557 Externalise English strings - extracted bundle names in Messages classes to
BUNDLE_NAME constants to keep Eclipse static analysis happy
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java 2009-04-08
18:11:04 UTC (rev 14613)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/Messages.java 2009-04-09
01:39:15 UTC (rev 14614)
@@ -24,6 +24,7 @@
import org.eclipse.osgi.util.NLS;
public class Messages {
+ private static final String BUNDLE_NAME =
"org.jboss.ide.eclipse.as.core.Messages"; //$NON-NLS-1$
/* Standard and re-usable */
public static String jboss;
public static String server;
@@ -31,7 +32,6 @@
public static String runModeNotSupported;
static {
- NLS.initializeMessages("org.jboss.ide.eclipse.as.core.Messages",
- Messages.class);
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
}
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java 2009-04-08
18:11:04 UTC (rev 14613)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.java 2009-04-09
01:39:15 UTC (rev 14614)
@@ -18,12 +18,11 @@
public class Messages {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.common.text.ext.hyperlink.xpl.Messages"; //$NON-NLS-1$
private Messages() { }
static {
- NLS.initializeMessages(
- "org.jboss.tools.common.text.ext.hyperlink.xpl.Messages", //$NON-NLS-1$
- Messages.class);
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
public static String cannotOpenLink;
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java 2009-04-08
18:11:04 UTC (rev 14613)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/JSFTextExtMessages.java 2009-04-09
01:39:15 UTC (rev 14614)
@@ -18,14 +18,12 @@
*/
public class JSFTextExtMessages {
-
+ private static final String BUNDLE_NAME =
"org.jboss.tools.jsf.text.ext.JSFTextExtMessages"; //$NON-NLS-1$
private JSFTextExtMessages() { }
static {
- NLS.initializeMessages(
- "org.jboss.tools.jsf.text.ext.JSFTextExtMessages",
- JSFTextExtMessages.class);
+ NLS.initializeMessages(BUNDLE_NAME, JSFTextExtMessages.class);
}
public static String Converter;
Modified:
trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java 2009-04-08
18:11:04 UTC (rev 14613)
+++
trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/StrutsTextExtMessages.java 2009-04-09
01:39:15 UTC (rev 14614)
@@ -18,14 +18,12 @@
*/
public class StrutsTextExtMessages {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.struts.text.ext.StrutsTextExtMessages"; //$NON-NLS-1$
-
private StrutsTextExtMessages() { }
static {
- NLS.initializeMessages(
- "org.jboss.tools.struts.text.ext.StrutsTextExtMessages",
- StrutsTextExtMessages.class);
+ NLS.initializeMessages(BUNDLE_NAME, StrutsTextExtMessages.class);
}
public static String OpenTagLibrary;
Show replies by date