summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-12-12 04:28:44 (EST)
committer Stephan Born2013-01-25 12:35:33 (EST)
commit247d2aafad8448735450c5bc04d8af6da16a2265 (patch)
tree1b97d8992c0f612aeaafa7cda27a28adc982b330
parentece8e1cdba0f24ce92f3763f800284d49ca50088 (diff)
downloadorg.eclipse.stardust.ui.web-247d2aafad8448735450c5bc04d8af6da16a2265.zip
org.eclipse.stardust.ui.web-247d2aafad8448735450c5bc04d8af6da16a2265.tar.gz
org.eclipse.stardust.ui.web-247d2aafad8448735450c5bc04d8af6da16a2265.tar.bz2
JiraID: CRNT-27233
I18N missing in web based modeler for some hard coded labels git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@61534 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java
index 05fe06c..df7c03b 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java
@@ -52,6 +52,8 @@ public class ProcessChangeCommandHandler
public void createProcess(ModelType model, JsonObject request)
{
String name = extractString(request, ModelerConstants.NAME_PROPERTY);
+ String defaultLaneName = extractString(request, "defaultLaneName");
+ String defaultPoolName = extractString(request, "defaultPoolName");
ProcessDefinitionType processDefinition = newProcessDefinition(model).withIdAndName(null, name).build();
//Added process definition to UUID map.
EObjectUUIDMapper mapper = modelService().uuidMapper();
@@ -76,7 +78,7 @@ public class ProcessChangeCommandHandler
poolSymbol.setYPos(0);
poolSymbol.setWidth(500);
poolSymbol.setHeight(600);
- poolSymbol.setName(DefaultNames.getString("views.diagram.defaultPool"));
+ poolSymbol.setName(defaultPoolName);
poolSymbol.setId("_default_pool__1");
poolSymbol.setOrientation(OrientationType.VERTICAL_LITERAL);
@@ -87,7 +89,7 @@ public class ProcessChangeCommandHandler
laneSymbol.setElementOid(++maxOid);
laneSymbol.setId(ModelerConstants.DEF_LANE_ID);
- laneSymbol.setName(DefaultNames.getString("views.diagram.defaultLane"));
+ laneSymbol.setName(defaultLaneName);
// Setting the x,y for default swimlane
//TODO - Move this code to javascript