summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-07-13 06:27:14 (EDT)
committerManik Kishore2012-07-19 02:20:10 (EDT)
commit0fd3ec0b640f7d55b17a206dee148f461eecf343 (patch)
tree77c14001296534b2407103a5f067211fe9ab3649
parentb4d01f4903fee97d5f1fdaf1fc038a8fcd3850f8 (diff)
downloadorg.eclipse.stardust.ui.web-0fd3ec0b640f7d55b17a206dee148f461eecf343.zip
org.eclipse.stardust.ui.web-0fd3ec0b640f7d55b17a206dee148f461eecf343.tar.gz
org.eclipse.stardust.ui.web-0fd3ec0b640f7d55b17a206dee148f461eecf343.tar.bz2
Jira-ID: CRNT-25414
1)Added eclipse header to .java files 2)Renamed the commands in m_command.js for create and delete node element, git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57636 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/ActivityCommandHandler.java20
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/EventCommandHandler.java20
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/GatewayCommandHandler.java20
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_command.js4
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js4
5 files changed, 52 insertions, 16 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/ActivityCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/ActivityCommandHandler.java
index 241ba90..d622c76 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/ActivityCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/ActivityCommandHandler.java
@@ -1,7 +1,14 @@
-/*
- * $Id$
- * (C) 2000 - 2012 CARNOT AG
- */
+/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+
package org.eclipse.stardust.ui.web.modeler.edit.diagram.node;
import static org.eclipse.stardust.ui.web.modeler.marshaling.GsonUtils.extractInt;
@@ -27,6 +34,11 @@ import org.eclipse.stardust.ui.web.modeler.service.ModelService;
import com.google.gson.JsonObject;
+/**
+ *
+ * @author Sidharth.Singh
+ *
+ */
public class ActivityCommandHandler implements ICommandHandler
{
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/EventCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/EventCommandHandler.java
index 5c2f7a2..928e11f 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/EventCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/EventCommandHandler.java
@@ -1,7 +1,14 @@
-/*
- * $Id$
- * (C) 2000 - 2012 CARNOT AG
- */
+/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+
package org.eclipse.stardust.ui.web.modeler.edit.diagram.node;
import static org.eclipse.stardust.ui.web.modeler.marshaling.GsonUtils.extractInt;
@@ -27,6 +34,11 @@ import org.eclipse.stardust.ui.web.modeler.edit.ICommandHandler;
import com.google.gson.JsonObject;
+/**
+ *
+ * @author Sidharth.Singh
+ *
+ */
public class EventCommandHandler implements ICommandHandler
{
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/GatewayCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/GatewayCommandHandler.java
index d65edf1..b55b602 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/GatewayCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/diagram/node/GatewayCommandHandler.java
@@ -1,7 +1,14 @@
-/*
- * $Id$
- * (C) 2000 - 2012 CARNOT AG
- */
+/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+
package org.eclipse.stardust.ui.web.modeler.edit.diagram.node;
import static org.eclipse.stardust.engine.api.model.PredefinedConstants.ADMINISTRATOR_ROLE;
@@ -26,6 +33,11 @@ import org.eclipse.stardust.ui.web.modeler.edit.ICommandHandler;
import com.google.gson.JsonObject;
+/**
+ *
+ * @author Sidharth.Singh
+ *
+ */
public class GatewayCommandHandler implements ICommandHandler
{
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_command.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_command.js
index 1e31abe..45a94d2 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_command.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_command.js
@@ -47,13 +47,13 @@ define([ "m_utils", "m_constants", "m_user" ], function(m_utils, m_constants, m_
createMoveNodeSymbolCommand : function(baseUri, targetElement, newObject, context) {
return new ChangeDescriptor("nodeSymbol.move", [{oid: targetElement.oid, changes: newObject}], context);
},
- createNodeSymbolCommand : function(commandType, baseUri, targetElement, newObject, context) {
+ createCreateNodeCommand : function(commandType, baseUri, targetElement, newObject, context) {
return new ChangeDescriptor(commandType, [{oid: targetElement.oid, changes: newObject}], context);
},
createUpdateModelElementCommand : function(oid, changes, context) {
return new ChangeDescriptor("modelElement.update", [{oid: oid, changes: changes}], context);
},
- createRemoveNodeSymbolCommand : function(commandType, baseUri, targetElement, newObject, context) {
+ createRemoveNodeCommand : function(commandType, baseUri, targetElement, newObject, context) {
return new ChangeDescriptor(commandType, [{oid: targetElement.oid, changes: newObject}], context);
},
// TODO Might be simple Request causing command to be broadcasted
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
index f295bf9..b6eabdc 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
@@ -1184,13 +1184,13 @@ define(
*
*/
Symbol.prototype.createAndSubmitDeleteCommand = function() {
- var command = m_command.createRemoveNodeSymbolCommand(this.getCommandIdForNode("delete"), this.getPath(true),
+ var command = m_command.createRemoveNodeCommand(this.getCommandIdForNode("delete"), this.getPath(true),
{oid : this.parentSymbol.oid}, this.createTransferObject(), this);
m_commandsController.submitCommand(command);
}
Symbol.prototype.createAndSubmitCreateCommand = function () {
- var command = m_command.createNodeSymbolCommand(
+ var command = m_command.createCreateNodeCommand(
this.getCommandIdForNode("create"), this.getPath(true), {
oid : this.parentSymbol.oid
}, this.createTransferObject(), this);