Author: rob.stryker(a)jboss.com
Date: 2009-12-16 19:18:38 -0500 (Wed, 16 Dec 2009)
New Revision: 19375
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.properties
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetReferenceWizardFragment.java
Log:
String externalization
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.java 2009-12-17
00:02:59 UTC (rev 19374)
+++
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.java 2009-12-17
00:18:38 UTC (rev 19375)
@@ -65,6 +65,10 @@
public static String EjbJarPreview;
public static String EjbJarDescription;
+ public static String ReferenceWizard_title;
+ public static String ReferenceWizard_description;
+
+
static {
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.properties
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.properties 2009-12-17
00:02:59 UTC (rev 19374)
+++
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/Messages.properties 2009-12-17
00:18:38 UTC (rev 19375)
@@ -47,4 +47,9 @@
Preview=Preview
BuildArchive=Build Archive
EjbJarPreview=EJB JAR Preview
-EjbJarDescription=Preview the EJB JAR\nLater, you can customize this structure further.
\ No newline at end of file
+EjbJarDescription=Preview the EJB JAR\nLater, you can customize this structure further.
+
+# fileset references (modulecore)
+ReferenceWizard_title=Add a fileset reference
+ReferenceWizard_description=A fileset reference can copy resources from a folder inside
the workspace. Use the include and exclude fields to specify which resources should be
copied.
+ReferenceWizard_rootFolder=Root Folder
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetReferenceWizardFragment.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetReferenceWizardFragment.java 2009-12-17
00:02:59 UTC (rev 19374)
+++
trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/src/org/jboss/ide/eclipse/archives/webtools/ui/FilesetReferenceWizardFragment.java 2009-12-17
00:18:38 UTC (rev 19375)
@@ -24,6 +24,7 @@
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.server.ui.wizard.IWizardHandle;
import org.eclipse.wst.server.ui.wizard.WizardFragment;
+import org.jboss.ide.eclipse.archives.webtools.Messages;
import
org.jboss.ide.eclipse.archives.webtools.filesets.vcf.WorkspaceFilesetVirtualComponent;
import org.jboss.ide.eclipse.as.wtp.ui.propertypage.IReferenceEditor;
import org.jboss.ide.eclipse.as.wtp.ui.propertypage.NewReferenceWizard;
@@ -42,19 +43,19 @@
private String includes, excludes, folder;
public Composite createComposite(Composite parent, IWizardHandle handle) {
hasEntered = true;
- handle.setTitle("Add a fileset reference"); //$NON-NLS-1$
- handle.setDescription("This will let you select a root folder and some matching
patterns"); //$NON-NLS-1$
+ handle.setTitle(Messages.ReferenceWizard_title);
+ handle.setDescription(Messages.ReferenceWizard_description);
Composite child = new Composite(parent, SWT.NONE);
// root folder, text, browse
child.setLayout(new FormLayout());
Control top = null;
- addLabel("Root Folder", child, top); //$NON-NLS-1$
+ addLabel(Messages.FilesetsNewRootDir, child, top);
top = rootText = addText(child, top, true);
- addLabel("Includes", child, top); //$NON-NLS-1$
+ addLabel(Messages.FilesetsNewIncludes, child, top);
top = incText = addText(child, top, false);
- addLabel("Excludes", child, top); //$NON-NLS-1$
+ addLabel(Messages.FilesetsNewExcludes, child, top);
top = excText = addText(child, top, false);
ModifyListener listener = new ModifyListener() {
public void modifyText(ModifyEvent e) {
@@ -87,7 +88,7 @@
Button b = null;
if( includeBrowse ) {
b = new Button(parent, SWT.NONE);
- b.setText("Browse..."); //$NON-NLS-1$
+ b.setText(Messages.FilesetsNewBrowse);
addBrowseListener(b,t);
FormData bData = new FormData();
bData.right = new FormAttachment(100,-5);
Show replies by date