summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2013-02-19 07:45:44 (EST)
committerSven Rottstock2013-02-19 07:45:44 (EST)
commit344cb2693d844593ec26ff8e2fcebffe07b6a423 (patch)
tree67d2ccd1b483b8610e67bce758fa0854b58ecab5
parent45fd9b71135d1c2e2f41c3c75ffc03df3c627c88 (diff)
downloadorg.eclipse.stardust.ide-344cb2693d844593ec26ff8e2fcebffe07b6a423.zip
org.eclipse.stardust.ide-344cb2693d844593ec26ff8e2fcebffe07b6a423.tar.gz
org.eclipse.stardust.ide-344cb2693d844593ec26ff8e2fcebffe07b6a423.tar.bz2
Jira-ID: CRNT-27727
New UI elements like camel trigger and application, Transient mode and model data source in BIRT report are not internationalized git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@63098 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/I18N_Messages.java6
-rw-r--r--modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/i18n-messages.properties4
-rw-r--r--modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/properties/PropertiesList.java24
3 files changed, 28 insertions, 6 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/I18N_Messages.java b/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/I18N_Messages.java
index 05b93cc..864a6ff 100644
--- a/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/I18N_Messages.java
+++ b/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/I18N_Messages.java
@@ -33,9 +33,13 @@ public class I18N_Messages extends NLS
public static String PropertyValuesEditor_NLS;
public static String PropertyValuesEditor_Value;
-
+
public static String PropertiesList_PropertyName;
+ public static String Property_Description;
+
+ public static String Property_Name;
+
static
{
// initialize resource bundle
diff --git a/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/i18n-messages.properties b/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/i18n-messages.properties
index 4d78a79..a4e2940 100644
--- a/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/i18n-messages.properties
+++ b/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/i18n-messages.properties
@@ -2,9 +2,11 @@ I18NBundlesModelPropertyPage_DeleteButtonLabel=Delete
I18NBundlesModelPropertyPage_DeleteConfirmationDialogTitle=Delete
I18NBundlesModelPropertyPage_DeleteConfirmationMessage=Do you want to delete all properties for locale {0} ?
I18NBundlesModelPropertyPage_NoSourceFolderMessage=Project has no source folders. Locales cannot be created.
-I18NBundlesPropertyPage_Bundle_Basename_Label=Bundle Basename:
+I18NBundlesPropertyPage_Bundle_Basename_Label=Bundle Basename:
I18NBundlesPropertyPage_NoLanguageBundles=There are no language bundles. Please create one in the model properties.
I18NBundlesValidator_MISSING_VALUE=Missing {1} value for property {0}
PropertyValuesEditor_NLS=NLS
PropertyValuesEditor_Value=Value
PropertiesList_PropertyName=Property Name
+Property_Description=Description
+Property_Name=Name
diff --git a/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/properties/PropertiesList.java b/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/properties/PropertiesList.java
index a2d48ac..c3cf595 100644
--- a/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/properties/PropertiesList.java
+++ b/modeling/org.eclipse.stardust.modeling.model.i18n/src/org/eclipse/stardust/modeling/model/i18n/properties/PropertiesList.java
@@ -25,7 +25,7 @@ public class PropertiesList implements IPropertyModelListener
{
private static final String[] columnProperties = new String[] {
I18N_Messages.PropertiesList_PropertyName};
-
+
private TableViewer viewer;
private ScopedPropertyModel model;
@@ -43,15 +43,31 @@ public class PropertiesList implements IPropertyModelListener
columnProperties, new int[] {100}, span);
viewer = new TableViewer(table);
viewer.setContentProvider(new ArrayContentProvider());
- viewer.setLabelProvider(new LabelProvider());
+ viewer.setLabelProvider(new LabelProvider() {
+
+ @Override
+ public String getText(Object element)
+ {
+ if (element.toString().equals(PropertyModel.NAME))
+ {
+ return I18N_Messages.Property_Name;
+ }
+ if (element.toString().equals(PropertyModel.DESCRIPTION))
+ {
+ return I18N_Messages.Property_Description;
+ }
+ return super.getText(element);
+ }
+
+ });
viewer.setColumnProperties(columnProperties);
}
-
+
public TableViewer getViewer()
{
return viewer;
}
-
+
public void localesChanged()
{
viewer.setInput(model.getProperties());