[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs ...
Robert Stryker
rawblem at gmail.com
Wed Sep 20 17:03:43 EDT 2006
User: rawb
Date: 06/09/20 17:03:43
Modified: as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs
XPathDialogs.java TwiddleDialog.java
Log:
NLS moved messages
Revision Changes Path
1.4 +13 -14 jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/XPathDialogs.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: XPathDialogs.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/XPathDialogs.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- XPathDialogs.java 31 Jul 2006 19:43:42 -0000 1.3
+++ XPathDialogs.java 20 Sep 2006 21:03:43 -0000 1.4
@@ -51,6 +51,7 @@
import org.jboss.ide.eclipse.as.core.server.JBossServer;
import org.jboss.ide.eclipse.as.core.server.ServerAttributeHelper.XPathPreferenceTreeItem;
import org.jboss.ide.eclipse.as.core.util.ASDebug;
+import org.jboss.ide.eclipse.as.ui.Messages;
import org.jboss.ide.eclipse.as.ui.viewproviders.DescriptorXPathViewProvider.XPathPropertyLabelProvider;
public class XPathDialogs {
@@ -74,7 +75,7 @@
protected void configureShell(Shell shell) {
super.configureShell(shell);
- shell.setText("New Category");
+ shell.setText(Messages.XPathNewCategory);
}
protected Control createDialogArea(Composite parent) {
@@ -82,7 +83,7 @@
c.setLayout(new FormLayout());
errorLabel = new Label(c, SWT.NONE);
- errorLabel.setText("Category Name In Use.");
+ errorLabel.setText(Messages.XPathNewCategoryNameInUse);
FormData errorData = new FormData();
errorData.left = new FormAttachment(0,5);
errorData.top = new FormAttachment(0,5);
@@ -90,7 +91,7 @@
errorLabel.setVisible(false);
Label l = new Label(c, SWT.NONE);
- l.setText("Category Name: ");
+ l.setText(Messages.XPathCategoryName);
FormData labelData = new FormData();
labelData.left = new FormAttachment(0,5);
labelData.top = new FormAttachment(errorLabel,5);
@@ -180,7 +181,7 @@
protected void configureShell(Shell shell) {
super.configureShell(shell);
setShellStyle(getShellStyle() | SWT.RESIZE);
- shell.setText("New XPath");
+ shell.setText(Messages.XPathNewXpath);
shell.setBounds(shell.getLocation().x, shell.getLocation().y, 550, 400);
}
@@ -236,7 +237,7 @@
protected void verifyName() {
if( nameText.getText().equals("")) {
- errorLabel.setText("Name must be set.");
+ errorLabel.setText(Messages.XPathNameEmpty);
errorLabel.setVisible(true);
getButton(IDialogConstants.OK_ID).setEnabled(false);
return;
@@ -260,7 +261,7 @@
}
if( found ) {
// error, name in use
- errorLabel.setText("Name in use.");
+ errorLabel.setText(Messages.XPathNameInUse);
errorLabel.setVisible(true);
getButton(IDialogConstants.OK_ID).setEnabled(false);
} else {
@@ -275,7 +276,6 @@
list.addAll(Arrays.asList(item));
previewTreeViewer.setInput(list);
main.layout();
- ASDebug.p("found items: " + item.length, this);
}
protected void layoutWidgets(Composite c) {
// create widgets
@@ -296,9 +296,9 @@
column2 = new TreeColumn(previewTree, SWT.NONE);
column3 = new TreeColumn(previewTree, SWT.NONE);
- column.setText("Location");
- column2.setText("Attribute Value");
- column3.setText("Raw XML");
+ column.setText(Messages.XPathColumnLocation);
+ column2.setText(Messages.XPathColumnAttributeVals);
+ column3.setText(Messages.XPathColumnRawXML);
column.setWidth(100);
column2.setWidth(100);
@@ -308,9 +308,9 @@
// set some text
- nameLabel.setText("Name: ");
- xpathLabel.setText("XPath Pattern: ");
- attributeLabel.setText("Attribute Name: ");
+ nameLabel.setText(Messages.XPathName);
+ xpathLabel.setText(Messages.XPathPattern);
+ attributeLabel.setText(Messages.XPathAttribute);
c.layout();
int pixel = Math.max(Math.max(nameLabel.getSize().x, xpathLabel.getSize().x), attributeLabel.getSize().x);
@@ -406,7 +406,6 @@
public Object[] getElements(Object inputElement) {
if( inputElement instanceof ArrayList ) {
- ASDebug.p("we have an array list", this);
return ((ArrayList)inputElement).toArray();
}
return new Object[0];
1.7 +6 -6 jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/TwiddleDialog.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TwiddleDialog.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/TwiddleDialog.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- TwiddleDialog.java 29 Aug 2006 17:24:36 -0000 1.6
+++ TwiddleDialog.java 20 Sep 2006 21:03:43 -0000 1.7
@@ -55,8 +55,8 @@
import org.jboss.ide.eclipse.as.core.server.JBossLaunchConfigurationDelegate;
import org.jboss.ide.eclipse.as.core.server.JBossServer;
import org.jboss.ide.eclipse.as.core.server.JBossServerBehavior;
-import org.jboss.ide.eclipse.as.core.util.ASDebug;
import org.jboss.ide.eclipse.as.ui.JBossServerUISharedImages;
+import org.jboss.ide.eclipse.as.ui.Messages;
public class TwiddleDialog extends Dialog {
@@ -81,7 +81,7 @@
}
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
- newShell.setText("Twiddle Dialog");
+ newShell.setText(Messages.TwiddleDialog);
newShell.setImage(JBossServerUISharedImages.getImage(JBossServerUISharedImages.TWIDDLE_IMAGE));
}
@@ -91,8 +91,8 @@
protected void createButtonsForButtonBar(Composite parent) {
// create OK and Cancel buttons by default
- createButton(parent, EXECUTE_ID, "Execute Twiddle", true);
- createButton(parent, IDialogConstants.OK_ID, "Done",
+ createButton(parent, EXECUTE_ID, Messages.TwiddleDialogExecute, true);
+ createButton(parent, IDialogConstants.OK_ID, Messages.TwiddleDialogDone,
false);
}
@@ -149,7 +149,7 @@
main.setLayout(new FormLayout());
queryLabel = new Label(main, SWT.NONE);
- queryLabel.setText("Twiddle arguments: ");
+ queryLabel.setText(Messages.TwiddleDialogArguments);
FormData queryLabelData = new FormData();
queryLabelData.left = new FormAttachment(0,5);
queryLabelData.top = new FormAttachment(0,5);
@@ -157,7 +157,7 @@
twiddleTutorialLink = new Hyperlink(main, SWT.NONE);
- twiddleTutorialLink.setText("Twiddle Tutorial");
+ twiddleTutorialLink.setText(Messages.TwiddleDialogTutorial);
twiddleTutorialLink.setForeground(new Color(null, 0, 0, 255));
twiddleTutorialLink.setUnderlined(true);
FormData twiddleTutorialData = new FormData();
More information about the jboss-cvs-commits
mailing list