summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-10 08:52:12 (EDT)
committerStephan Born2012-09-10 08:52:12 (EDT)
commitf3749cc541f207c00d7fe8f64b04cf0e2a827b10 (patch)
treeb929bde95cdbe64e64819deb50161be84bc628a8
parent1a848806eeabfa9c20c8deb64afa0591c95c031b (diff)
downloadorg.eclipse.stardust.ui.web-f3749cc541f207c00d7fe8f64b04cf0e2a827b10.zip
org.eclipse.stardust.ui.web-f3749cc541f207c00d7fe8f64b04cf0e2a827b10.tar.gz
org.eclipse.stardust.ui.web-f3749cc541f207c00d7fe8f64b04cf0e2a827b10.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@59043 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ApplicationTypeChangeCommandHandler.java24
1 files changed, 24 insertions, 0 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 25505f2..1be74a8 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
@@ -116,6 +116,30 @@ public class ApplicationTypeChangeCommandHandler
// 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);
+
+ 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
* @param request