summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-10 11:08:26 (EDT)
committerStephan Born2012-09-10 11:08:26 (EDT)
commit3bbdfbddf9412c8b68f25e2ab55160928cf4c311 (patch)
tree195db2ac3815173f066e1cb6cbbb7fa34611c8ec
parentf3749cc541f207c00d7fe8f64b04cf0e2a827b10 (diff)
downloadorg.eclipse.stardust.ui.web-3bbdfbddf9412c8b68f25e2ab55160928cf4c311.zip
org.eclipse.stardust.ui.web-3bbdfbddf9412c8b68f25e2ab55160928cf4c311.tar.gz
org.eclipse.stardust.ui.web-3bbdfbddf9412c8b68f25e2ab55160928cf4c311.tar.bz2
CRNT-26125 Pepper: ModelBuilder API - Create accesspoints for MTA / UI Mashup (Create application by using the facade)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@59052 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ApplicationTypeChangeCommandHandler.java34
1 files changed, 1 insertions, 33 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ApplicationTypeChangeCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ApplicationTypeChangeCommandHandler.java
index 1be74a8..f91943b 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ApplicationTypeChangeCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ApplicationTypeChangeCommandHandler.java
@@ -95,34 +95,6 @@ public class ApplicationTypeChangeCommandHandler
public void createUiMashupApp(EObject targetElement, JsonObject request)
{
ModelType model = (ModelType) targetElement;
- ApplicationType applicationType = AbstractElementBuilder.F_CWM.createApplicationType();
-
- //Map newly created application to a UUID
- EObjectUUIDMapper mapper = modelService().uuidMapper();
- mapper.map(applicationType);
-
- model.getApplication().add(applicationType);
-
- applicationType.setId(extractString(request, ModelerConstants.ID_PROPERTY));
- applicationType.setName(extractString(request, ModelerConstants.NAME_PROPERTY));
-
- // TODO - check if needed
- AttributeUtil.setAttribute(applicationType,
- ModelerConstants.APPLICATION_TYPE_PROPERTY,
- ModelerConstants.INTERACTIVE_APPLICATION_TYPE_KEY);
-
- // TODO
- // applicationType.setType(getModelBuilderFacade().findApplicationTypeType(model,
- // ModelerConstants.MESSAGE_TRANSFORMATION_APPLICATION_TYPE_ID));
- }
-
- //TODO: The same as above using the ModelBuilderFacade which adds all attributes and references
- //needed to the raw application type. Problem: For some reasons the Icon is shown as Folder.
-
- //@OnCommand(commandId = "uiMashupApplication.create")
- /*public void createUiMashupApp(EObject targetElement, JsonObject request)
- {
- ModelType model = (ModelType) targetElement;
String id = extractString(request, ModelerConstants.ID_PROPERTY);
String name = extractString(request, ModelerConstants.NAME_PROPERTY);
@@ -130,15 +102,11 @@ public class ApplicationTypeChangeCommandHandler
ApplicationType applicationType = getModelBuilderFacade().createApplication(model,
id, name, ModelerConstants.EXTERNAL_WEB_APP_CONTEXT_TYPE_KEY);
- AttributeUtil.setAttribute(applicationType,
- ModelerConstants.APPLICATION_TYPE_PROPERTY,
- ModelerConstants.INTERACTIVE_APPLICATION_TYPE_KEY);
-
//Map newly created application to a UUID
EObjectUUIDMapper mapper = modelService().uuidMapper();
mapper.map(applicationType);
- }*/
+ }
/**
* @param targetElement