summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2013-02-20 07:54:26 (EST)
committer Sven Rottstock2013-02-20 07:54:26 (EST)
commit21d4e128181e09e7b49f1cefe1d4b3d7bd671c41 (patch)
treeced8340e604935beb66b8dcc0f8aa115fd16faa4
parent8060af018f420c50a08f8fd3973a7d4b957151bd (diff)
downloadorg.eclipse.stardust.ide-21d4e128181e09e7b49f1cefe1d4b3d7bd671c41.zip
org.eclipse.stardust.ide-21d4e128181e09e7b49f1cefe1d4b3d7bd671c41.tar.gz
org.eclipse.stardust.ide-21d4e128181e09e7b49f1cefe1d4b3d7bd671c41.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@63123 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/parts/diagram/actions/ShowPropertiesAction.java47
1 files changed, 26 insertions, 21 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/parts/diagram/actions/ShowPropertiesAction.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/parts/diagram/actions/ShowPropertiesAction.java
index 582ef94..cdd8049 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/parts/diagram/actions/ShowPropertiesAction.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/parts/diagram/actions/ShowPropertiesAction.java
@@ -104,8 +104,8 @@ public class ShowPropertiesAction extends PropertyDialogAction
{
return false;
}
- }
-
+ }
+
if (!(object instanceof IAdaptable))
{
return false;
@@ -143,16 +143,21 @@ public class ShowPropertiesAction extends PropertyDialogAction
adaptable = linkEP;
}
}
-
+
CarnotPropertyPageContributor.instance().contributePropertyPages(pageManager, adaptable);
return pageManager.getElements(PreferenceManager.PRE_ORDER).iterator();
}
+ public String getText()
+ {
+ return Diagram_Messages.LBL_Properties;
+ }
+
public PreferenceDialog createDialog()
{
return createDialog(null);
}
-
+
public PreferenceDialog createDialog(ChangeRecorder recorder)
{
if (!isApplicableForSelection(getStructuredSelection()))
@@ -160,11 +165,11 @@ public class ShowPropertiesAction extends PropertyDialogAction
return null;
}
IAdaptable element = (IAdaptable) getStructuredSelection().getFirstElement();
-
+
PreferenceManager pageManager = new PreferenceManager(ModelElementPropertyDialog.NODE_PATH_SEPARATOR);
Shell shell = editor.getSite().getShell();
String name = getName(element);
-
+
Iterator<?> pages = getPages(pageManager, element);
if (!pages.hasNext())
{
@@ -172,15 +177,15 @@ public class ShowPropertiesAction extends PropertyDialogAction
String informationMessage = NLS.bind(Diagram_Messages.BIND_NoPropertyPages, name);
if(element instanceof PartOfConnectionEditPart)
{
- informationMessage = Diagram_Messages.BIND_NoPropertyPagesConnectionPartOf;
- }
+ informationMessage = Diagram_Messages.BIND_NoPropertyPagesConnectionPartOf;
+ }
else if(element instanceof PerformsConnectionEditPart)
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesConnectionPerformedBy;
}
else if(element instanceof SubProcessOfConnectionEditPart)
{
- informationMessage = Diagram_Messages.BIND_NoPropertyPagesSubprocessOf;
+ informationMessage = Diagram_Messages.BIND_NoPropertyPagesSubprocessOf;
}
else if(element instanceof GenericLinkConnectionEditPart)
{
@@ -193,7 +198,7 @@ public class ShowPropertiesAction extends PropertyDialogAction
else if(element instanceof WorksForConnectionEditPart)
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesWorksFor;
- }
+ }
else if(element instanceof TeamLeadConnectionEditPart)
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesTeamLead;
@@ -201,11 +206,11 @@ public class ShowPropertiesAction extends PropertyDialogAction
else if(element instanceof TriggersConnectionEditPart)
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesTriggersConnection;
- }
+ }
else if(element instanceof RefersToConnectionEditPart)
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesRefersToConnection;
- }
+ }
else if(element instanceof AnnotationSymbolEditPart)
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesAnnotationSymbol;
@@ -218,7 +223,7 @@ public class ShowPropertiesAction extends PropertyDialogAction
{
informationMessage = Diagram_Messages.BIND_NoPropertyPagesSymbolGroup;
}
-
+
MessageDialog.openInformation(shell, Diagram_Messages.MSG_PropertyPages, informationMessage);
return null;
}
@@ -226,7 +231,7 @@ public class ShowPropertiesAction extends PropertyDialogAction
ModelElementPropertyDialog preferenceDialog = new ModelElementPropertyDialog(
editor, shell, pageManager, element, recorder);
editor.getModelServer().setCachedModelElement(ModelUtils.getEObject(element));
-
+
preferenceDialog.create();
preferenceDialog.getShell()
.setText(NLS.bind(Diagram_Messages.BIND_Properties, name));
@@ -260,7 +265,7 @@ public class ShowPropertiesAction extends PropertyDialogAction
if (model instanceof TransitionConnectionType)
{
return ((TransitionConnectionType) model).getTransition().getName();
- }
+ }
// special case for Gateways
if (model instanceof GatewaySymbol)
{
@@ -282,19 +287,19 @@ public class ShowPropertiesAction extends PropertyDialogAction
if (model instanceof TypeDeclarationType)
{
return ((TypeDeclarationType) model).getName();
- }
+ }
if (model instanceof DataMappingConnectionType)
{
return Diagram_Messages.BIND_PropertyPagesDataMappingConnection;
- }
+ }
if (model instanceof IObjectDescriptor)
- {
+ {
return ((IObjectDescriptor)model).getLabel();
- }
+ }
if (model instanceof Connection)
- {
+ {
return ((Connection)model).getName();
- }
+ }
if (model instanceof ExternalPackage)
{
return ((ExternalPackage) model).getName();