summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-02-09 09:26:04 (EST)
committer Stephan Born2012-04-24 04:33:26 (EDT)
commitbdda7e8d5792dd3ad5e992aed41ea43079f3565b (patch)
treeb1d63b5b6cccde303c36f9b808cd4f7e89e217f6
parent04b83e0ba5c01cad5655ca90ef33404443cc55d9 (diff)
downloadorg.eclipse.stardust.ide-bdda7e8d5792dd3ad5e992aed41ea43079f3565b.zip
org.eclipse.stardust.ide-bdda7e8d5792dd3ad5e992aed41ea43079f3565b.tar.gz
org.eclipse.stardust.ide-bdda7e8d5792dd3ad5e992aed41ea43079f3565b.tar.bz2
Jira-ID: CRNT-23200 Stardust: Rename NL Plugins to new name pattern (fixing missing externalized Strings)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53667 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ComplexAttributeUtils.java16
-rw-r--r--modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/MetadataManager.java10
-rw-r--r--modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ObjectTable.java12
-rw-r--r--modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/TableRowToolTipListener.java4
4 files changed, 21 insertions, 21 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ComplexAttributeUtils.java b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ComplexAttributeUtils.java
index 4b67c03..1eb61e9 100644
--- a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ComplexAttributeUtils.java
+++ b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ComplexAttributeUtils.java
@@ -39,8 +39,8 @@ public class ComplexAttributeUtils
while (true)
{
- String value = AttributeUtil.getAttributeValue(element, property + "["
- + n + "]");
+ String value = AttributeUtil.getAttributeValue(element, property + "[" //$NON-NLS-1$
+ + n + "]"); //$NON-NLS-1$
if (value != null)
{
@@ -152,7 +152,7 @@ public class ComplexAttributeUtils
try
{
AttributeUtil.setAttribute((IExtensibleElement) element, property
- + "[" + n + "]", identificationMethod.invoke(object, null)
+ + "[" + n + "]", identificationMethod.invoke(object, null) //$NON-NLS-1$ //$NON-NLS-2$
.toString());
}
catch (IllegalArgumentException e)
@@ -191,7 +191,7 @@ public class ComplexAttributeUtils
for (int m = 0; m < objectTable.getPropertyNames().length; ++m)
{
String value = AttributeUtil.getAttributeValue(element, property
- + "[" + n + "]." + objectTable.getPropertyNames()[m]);
+ + "[" + n + "]." + objectTable.getPropertyNames()[m]); //$NON-NLS-1$ //$NON-NLS-2$
if (value != null)
{
@@ -239,13 +239,13 @@ public class ComplexAttributeUtils
for (int m = 0; m < table.getPropertyNames().length; ++m)
{
value = AttributeUtil.getAttributeValue(element, property
- + "[" + k + "]." + table.getPropertyNames()[m]);
+ + "[" + k + "]." + table.getPropertyNames()[m]); //$NON-NLS-1$ //$NON-NLS-2$
if (value != null)
{
AttributeUtil
.setAttribute((IExtensibleElement) element,
- property + "[" + k + "]."
+ property + "[" + k + "]." //$NON-NLS-1$ //$NON-NLS-2$
+ table.getPropertyNames()[m], null);
}
else
@@ -278,7 +278,7 @@ public class ComplexAttributeUtils
{
AttributeUtil
.setAttribute((IExtensibleElement) element,
- property + "[" + n + "]."
+ property + "[" + n + "]." //$NON-NLS-1$ //$NON-NLS-2$
+ table.getPropertyNames()[m], value);
}
}
@@ -305,7 +305,7 @@ public class ComplexAttributeUtils
for (int m = 0; m < metadataManager.getPropertyNames().length; ++m)
{
String value = AttributeUtil.getAttributeValue(element, property
- + "[" + n + "]." + metadataManager.getPropertyNames()[m]);
+ + "[" + n + "]." + metadataManager.getPropertyNames()[m]); //$NON-NLS-1$ //$NON-NLS-2$
if (value != null)
{
diff --git a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/MetadataManager.java b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/MetadataManager.java
index e490fd1..d348704 100644
--- a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/MetadataManager.java
+++ b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/MetadataManager.java
@@ -107,7 +107,7 @@ public class MetadataManager
{
if (defaultConstructor == null)
{
- throw new UnsupportedOperationException("No default constructor for class " + type.getName() + ".");
+ throw new UnsupportedOperationException("No default constructor for class " + type.getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$
}
try
@@ -162,8 +162,8 @@ public class MetadataManager
}
catch (IllegalArgumentException e)
{
- throw new RuntimeException("Illegal argument \"" + value
- + "\" for property \"" + propertyNames[index] + "\".");
+ throw new RuntimeException("Illegal argument \"" + value //$NON-NLS-1$
+ + "\" for property \"" + propertyNames[index] + "\"."); //$NON-NLS-1$ //$NON-NLS-2$
}
catch (IllegalAccessException e)
{
@@ -230,7 +230,7 @@ public class MetadataManager
String suffix = property.substring(0, 1).toUpperCase()
+ property.substring(1);
- return "get" + suffix;
+ return "get" + suffix; //$NON-NLS-1$
}
/**
@@ -243,6 +243,6 @@ public class MetadataManager
String suffix = property.substring(0, 1).toUpperCase()
+ property.substring(1);
- return "set" + suffix;
+ return "set" + suffix; //$NON-NLS-1$
}
}
diff --git a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ObjectTable.java b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ObjectTable.java
index 5022c42..9554a9d 100644
--- a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ObjectTable.java
+++ b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/ObjectTable.java
@@ -148,7 +148,7 @@ public class ObjectTable extends Composite
{
TableColumn number = new TableColumn(table, SWT.RIGHT);
- number.setText("");
+ number.setText(""); //$NON-NLS-1$
number.setWidth(25);
}
@@ -183,7 +183,7 @@ public class ObjectTable extends Composite
deleteButton = new Button(buttonComposite, 0);
- deleteButton.setText("X");
+ deleteButton.setText("X"); //$NON-NLS-1$
deleteButton.addListener(SWT.Selection, new Listener()
{
public void handleEvent(Event event)
@@ -253,7 +253,7 @@ public class ObjectTable extends Composite
if ((style & NUMBER_COLUMN) == NUMBER_COLUMN)
{
values = new String[metadataManager.getPropertyNames().length + 1];
- values[0] = "" + table.getItemCount();
+ values[0] = "" + table.getItemCount(); //$NON-NLS-1$
++start;
}
@@ -272,7 +272,7 @@ public class ObjectTable extends Composite
}
else
{
- values[start] = "";
+ values[start] = ""; //$NON-NLS-1$
}
++start;
@@ -295,7 +295,7 @@ public class ObjectTable extends Composite
{
if (n == 0)
{
- values[n] = "" + table.getItemCount();
+ values[n] = "" + table.getItemCount(); //$NON-NLS-1$
}
if (n == 1)
{
@@ -303,7 +303,7 @@ public class ObjectTable extends Composite
}
else
{
- values[n] = "";
+ values[n] = ""; //$NON-NLS-1$
}
}
diff --git a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/TableRowToolTipListener.java b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/TableRowToolTipListener.java
index 1c12db1..5e6ef28 100644
--- a/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/TableRowToolTipListener.java
+++ b/modeling/org.eclipse.stardust.modeling.common.ui.swt/src/org/eclipse/stardust/modeling/common/ui/swt/TableRowToolTipListener.java
@@ -68,7 +68,7 @@ public class TableRowToolTipListener implements Listener
{
case SWT.MouseDown:
Event e = new Event();
- e.item = (TableItem) label.getData("_TABLEITEM");
+ e.item = (TableItem) label.getData("_TABLEITEM"); //$NON-NLS-1$
// Assuming table is single select, set the selection as if
// the mouse down event went through to the table
table.setSelection(new TableItem[]
@@ -160,7 +160,7 @@ public class TableRowToolTipListener implements Listener
.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
label.setBackground(display
.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
- label.setData("_TABLEITEM", item);
+ label.setData("_TABLEITEM", item); //$NON-NLS-1$
label.setText(text);
label.addListener(SWT.MouseExit, labelListener);
label.addListener(SWT.MouseDown, labelListener);