From 77f06f78e45a2494138edcf501b21e51615a2748 Mon Sep 17 00:00:00 2001 From: vlorenzo Date: Thu, 16 May 2013 12:09:20 +0000 Subject: 408217: [ModelExplorer] The handlers to create UML/SysML elements must be moved in an upper plugin https://bugs.eclipse.org/bugs/show_bug.cgi?id=408217 --- .../plugin.xml | 431 +++- .../menu/handlers/ActorPartPropertyHandler.java | 14 +- .../nattable/menu/handlers/AllocateHandler.java | 16 +- .../AssociationCompositeDirectedHandler.java | 16 +- .../menu/handlers/AssociationCompositeHandler.java | 16 +- .../nattable/menu/handlers/AssociationHandler.java | 16 +- .../handlers/AssociationNoneDirectedHandler.java | 16 +- .../menu/handlers/AssociationNoneHandler.java | 16 +- .../handlers/AssociationSharedDirectedHandler.java | 16 +- .../menu/handlers/AssociationSharedHandler.java | 16 +- .../sysml/nattable/menu/handlers/BlockHandler.java | 14 +- .../nattable/menu/handlers/ConformHandler.java | 16 +- .../menu/handlers/ConstraintBlockHandler.java | 16 +- .../handlers/ConstraintBlockParameterHandler.java | 16 +- .../menu/handlers/ConstraintPropertyHandler.java | 16 +- .../sysml/nattable/menu/handlers/CopyHandler.java | 16 +- .../nattable/menu/handlers/DeriveReqtHandler.java | 14 +- .../nattable/menu/handlers/DimensionHandler.java | 16 +- .../nattable/menu/handlers/FlowPortHandler.java | 14 +- .../nattable/menu/handlers/FlowPort_InHandler.java | 16 +- .../menu/handlers/FlowPort_InOutHandler.java | 16 +- .../nattable/menu/handlers/FlowPort_NAHandler.java | 11 + .../menu/handlers/FlowPort_OutHandler.java | 16 +- .../menu/handlers/FlowPropertyHandler.java | 14 +- .../menu/handlers/FlowSpecificationHandler.java | 14 +- .../nattable/menu/handlers/ItemFlowHandler.java | 16 +- .../menu/handlers/PartPropertyHandler.java | 14 +- .../nattable/menu/handlers/ProblemHandler.java | 16 +- .../nattable/menu/handlers/RationaleHandler.java | 16 +- .../menu/handlers/ReferencePropertyHandler.java | 14 +- .../nattable/menu/handlers/RequirementHandler.java | 14 +- .../nattable/menu/handlers/SatisfyHandler.java | 16 +- .../sysml/nattable/menu/handlers/UnitHandler.java | 16 +- .../menu/handlers/ValuePropertyHandler.java | 14 +- .../nattable/menu/handlers/ValueTypeHandler.java | 16 +- .../handlers/ValueType_EnumerationHandler.java | 16 +- .../handlers/ValueType_PrimitiveTypeHandler.java | 16 +- .../nattable/menu/handlers/VerifyHandler.java | 16 +- .../sysml/nattable/menu/handlers/ViewHandler.java | 16 +- .../nattable/menu/handlers/ViewPointHandler.java | 16 +- .../AbstractSysmlNattableCreateCommandHandler.java | 79 +- .../plugin.xml | 2695 ++++++++++++++++++-- .../AbstractUmlNattableCreateCommandHandler.java | 80 +- .../uml/nattable/menu/util/TableMenuUtils.java | 42 + 44 files changed, 3418 insertions(+), 508 deletions(-) (limited to 'sandbox') diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/plugin.xml b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/plugin.xml index 06b3626fe60..40b9cd04b97 100644 --- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/plugin.xml +++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/plugin.xml @@ -2,45 +2,396 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + label="Create SysML Element"> diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AllocateHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AllocateHandler.java index 6cc3fbffa1b..cd6c240b30d 100644 --- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AllocateHandler.java +++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AllocateHandler.java @@ -1,6 +1,16 @@ +/***************************************************************************** + * Copyright (c) 2013 CEA LIST. + * + * 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: + * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation + *****************************************************************************/ package org.eclipse.papyrus.sysml.nattable.menu.handlers; -import org.eclipse.core.commands.IHandler; import org.eclipse.gmf.runtime.emf.type.core.IElementType; import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; @@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; * * @generated */ -public class AllocateHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler { +public class AllocateHandler extends AbstractSysmlNattableCreateCommandHandler { /** *
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeDirectedHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeDirectedHandler.java
index cda67401e51..7351afe4c4a 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeDirectedHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeDirectedHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationCompositeDirectedHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationCompositeDirectedHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeHandler.java
index 31f953c348a..5decd16389a 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationCompositeHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationCompositeHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationCompositeHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationHandler.java
index 6379997200d..c1f7afececf 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneDirectedHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneDirectedHandler.java
index bd38070502e..ebc0b910a9d 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneDirectedHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneDirectedHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationNoneDirectedHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationNoneDirectedHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneHandler.java
index 7f406a79245..638c915fe26 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationNoneHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationNoneHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationNoneHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedDirectedHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedDirectedHandler.java
index af3e064cc9b..e0165df25fc 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedDirectedHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedDirectedHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationSharedDirectedHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationSharedDirectedHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedHandler.java
index 305075870f5..99eb5a8c074 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/AssociationSharedHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class AssociationSharedHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class AssociationSharedHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/BlockHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/BlockHandler.java
index 7ca00a85d5d..73f90304e76 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/BlockHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/BlockHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,7 +22,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class BlockHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class BlockHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConformHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConformHandler.java
index dace272adbd..6cf23d19dec 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConformHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConformHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ConformHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ConformHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockHandler.java
index 9671ab55f31..49675d0492a 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ConstraintBlockHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ConstraintBlockHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockParameterHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockParameterHandler.java
index da140f65001..0591d77c326 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockParameterHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintBlockParameterHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.emf.common.command.Command;
 import org.eclipse.emf.common.command.UnexecutableCommand;
 import org.eclipse.emf.ecore.EObject;
@@ -26,11 +36,11 @@ import org.eclipse.uml2.uml.UMLPackage;
  * 
  * @generated
  */
-public class ConstraintBlockParameterHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ConstraintBlockParameterHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintPropertyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintPropertyHandler.java
index b1ba55d62c4..3164d6ae3be 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintPropertyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ConstraintPropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ConstraintPropertyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ConstraintPropertyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/CopyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/CopyHandler.java
index ba99dc355d2..343496d20db 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/CopyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/CopyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class CopyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class CopyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DeriveReqtHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DeriveReqtHandler.java
index 852f9aa3629..9fc7ec1aaed 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DeriveReqtHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DeriveReqtHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,7 +22,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class DeriveReqtHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class DeriveReqtHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DimensionHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DimensionHandler.java
index 71e1ecd80d4..013a01ffecd 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DimensionHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/DimensionHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class DimensionHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class DimensionHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPortHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPortHandler.java
index 300ee882c5d..27cba566b1a 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPortHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPortHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,7 +22,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class FlowPortHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class FlowPortHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InHandler.java
index f39c9713ede..da01f4d17ea 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class FlowPort_InHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class FlowPort_InHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InOutHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InOutHandler.java
index 11f35aa2ffe..16a7e75db13 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InOutHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_InOutHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class FlowPort_InOutHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class FlowPort_InOutHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_NAHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_NAHandler.java
index 5b9b9d44339..b25276930d7 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_NAHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_NAHandler.java
@@ -1,3 +1,14 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
 import org.eclipse.emf.common.command.Command;
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_OutHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_OutHandler.java
index 3dba414691a..a6da5639599 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_OutHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPort_OutHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class FlowPort_OutHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class FlowPort_OutHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPropertyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPropertyHandler.java
index 8c2f08ed8a1..3aecc84d251 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPropertyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowPropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,7 +22,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class FlowPropertyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class FlowPropertyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowSpecificationHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowSpecificationHandler.java
index 0a6780791df..150eafeba16 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowSpecificationHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/FlowSpecificationHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,7 +22,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class FlowSpecificationHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class FlowSpecificationHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ItemFlowHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ItemFlowHandler.java
index 7522e5c1ef7..9ef7134d78e 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ItemFlowHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ItemFlowHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ItemFlowHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ItemFlowHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/PartPropertyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/PartPropertyHandler.java
index 9e4d5ee5afd..fe52448851b 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/PartPropertyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/PartPropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.emf.common.command.Command;
 import org.eclipse.emf.common.command.UnexecutableCommand;
 import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class PartPropertyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class PartPropertyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ProblemHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ProblemHandler.java
index 224184cc6e5..2503eaab89a 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ProblemHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ProblemHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ProblemHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ProblemHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RationaleHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RationaleHandler.java
index 870effea55d..3c0347349d3 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RationaleHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RationaleHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class RationaleHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class RationaleHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ReferencePropertyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ReferencePropertyHandler.java
index 7a167fe43eb..f64bbe7d052 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ReferencePropertyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ReferencePropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.emf.common.command.Command;
 import org.eclipse.emf.common.command.UnexecutableCommand;
 import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ReferencePropertyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ReferencePropertyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RequirementHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RequirementHandler.java
index b3a8f899287..bcc62ea4b78 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RequirementHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/RequirementHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,7 +22,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class RequirementHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class RequirementHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/SatisfyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/SatisfyHandler.java
index 4c1053febdb..3890db13e8d 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/SatisfyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/SatisfyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class SatisfyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class SatisfyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/UnitHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/UnitHandler.java
index 02250051d07..1ce7e203e44 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/UnitHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/UnitHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class UnitHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class UnitHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValuePropertyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValuePropertyHandler.java
index 2b6de8ddb0a..00ef0d806ba 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValuePropertyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValuePropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.emf.common.command.Command;
 import org.eclipse.emf.common.command.UnexecutableCommand;
 import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ValuePropertyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ValuePropertyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueTypeHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueTypeHandler.java
index ee252708001..26146d4455d 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueTypeHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueTypeHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ValueTypeHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ValueTypeHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_EnumerationHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_EnumerationHandler.java
index 3b9f388b8ac..e3be61c44bc 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_EnumerationHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_EnumerationHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ValueType_EnumerationHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ValueType_EnumerationHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_PrimitiveTypeHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_PrimitiveTypeHandler.java
index fd1ee5008df..606489e01c8 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_PrimitiveTypeHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ValueType_PrimitiveTypeHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ValueType_PrimitiveTypeHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ValueType_PrimitiveTypeHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/VerifyHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/VerifyHandler.java
index c107a5a2ee8..4f4db61a51a 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/VerifyHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/VerifyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class VerifyHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class VerifyHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewHandler.java
index a1650af5d42..ccbd234f146 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ViewHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ViewHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewPointHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewPointHandler.java
index fc27c6638b0..3a5011639ba 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewPointHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src-gen/org/eclipse/papyrus/sysml/nattable/menu/handlers/ViewPointHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ * 
+ * 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:
+ *  Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import org.eclipse.core.commands.IHandler;
 import org.eclipse.gmf.runtime.emf.type.core.IElementType;
 import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
 
@@ -12,11 +22,11 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
  * 
  * @generated
  */
-public class ViewPointHandler extends AbstractSysmlNattableCreateCommandHandler implements IHandler {
+public class ViewPointHandler extends AbstractSysmlNattableCreateCommandHandler {
 
 	/**
 	 * 
-	 * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+	 * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
 	 * 
 	 * @return the IElementType this handler is supposed to create
 	 * 
diff --git a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src/org/eclipse/papyrus/sysml/nattable/menu/handlers/AbstractSysmlNattableCreateCommandHandler.java b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src/org/eclipse/papyrus/sysml/nattable/menu/handlers/AbstractSysmlNattableCreateCommandHandler.java
index 3ee423c271a..e54c8af0e48 100644
--- a/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src/org/eclipse/papyrus/sysml/nattable/menu/handlers/AbstractSysmlNattableCreateCommandHandler.java
+++ b/sandbox/TableV3/org.eclipse.papyrus.sysml.nattable.menu/src/org/eclipse/papyrus/sysml/nattable/menu/handlers/AbstractSysmlNattableCreateCommandHandler.java
@@ -11,26 +11,10 @@
  *****************************************************************************/
 package org.eclipse.papyrus.sysml.nattable.menu.handlers;
 
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Set;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
 import org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager;
 import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
 import org.eclipse.papyrus.sysml.service.types.handlers.AbstractSysmlCreateCommandHandler;
-import org.eclipse.papyrus.uml.nattable.menu.messages.Messages;
 import org.eclipse.papyrus.uml.nattable.menu.util.TableMenuUtils;
 import org.eclipse.papyrus.uml.service.types.utils.ICommandContext;
 
@@ -40,9 +24,6 @@ import org.eclipse.papyrus.uml.service.types.utils.ICommandContext;
  */
 public abstract class AbstractSysmlNattableCreateCommandHandler extends AbstractSysmlCreateCommandHandler {
 
-	@Override
-	protected abstract IElementType getElementTypeToCreate();
-
 	/**
 	 * 
 	 * 
@@ -54,57 +35,37 @@ public abstract class AbstractSysmlNattableCreateCommandHandler extends Abstract
 	 * 
 	 * 
*/ - @Override protected Command buildCommand() { Command createCmd = super.buildCommand(); - - final INattableModelManager nattableModelManager = TableMenuUtils.getTableManager(getActiveWorkbenchPart()); - if(nattableModelManager != null) { - CompositeCommand cmd = new CompositeCommand(""); //$NON-NLS-1$ - cmd.add(new EMFtoGMFCommandWrapper(createCmd)); - - final CreateElementRequest request = this.createRequest; - // depends on the synchronization of the axis manager - cmd.add(new AbstractTransactionalCommand(getEditingDomain(), Messages.AbstractNattableCreateCommandHandler_AddElementCommand, null) { - - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - EObject newElement = request.getNewElement(); - Collection toAdd = new ArrayList(); - toAdd.add(newElement); - Command tmp = nattableModelManager.getAddRowElementCommand(toAdd); - if(tmp != null) { - tmp.execute(); - } - return CommandResult.newOKCommandResult(); - } - }); - return new org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper(cmd); - - } - return UnexecutableCommand.INSTANCE; - + return TableMenuUtils.buildNattableCreationCommand(createCmd, this.createRequest); } - @Override + /** + * Obtain the context of the active table editor. + * + * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCommandHandler#getCommandContext() + * + * @return + */ protected ICommandContext getCommandContext() { return TableMenuUtils.getTableCommandContext(TableMenuUtils.getTableManager(getActiveWorkbenchPart())); } - @Override + /** + * Verify if this handler is currently active and the command can execute. Additionally, verify if this table can add this type of element. + * + * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#setEnabled(java.lang.Object) + * + * @param evaluationContext + */ public void setEnabled(Object evaluationContext) { - Command command = getCommand(); - boolean isEnabled = command.canExecute(); + INattableModelManager tableManager = TableMenuUtils.getTableManager(getActiveWorkbenchPart()); + boolean isEnabled = tableManager.canCreateRowElement(getElementTypeToCreate().getId()); if(isEnabled) { - IElementType newElementType = getElementTypeToCreate(); - INattableModelManager tableManager = TableMenuUtils.getTableManager(getActiveWorkbenchPart()); - String id = newElementType.getId(); - - isEnabled = tableManager.canCreateRowElement(id); - Set visibleCommands = getFilterIds(); - isEnabled &= visibleCommands.contains(id); - + //we test the enable of the super implementation + super.setEnabled(evaluationContext); + isEnabled = super.isEnabled(); } setBaseEnabled(isEnabled); diff --git a/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/plugin.xml b/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/plugin.xml index 9a700a1f6c5..dd93da09f6d 100644 --- a/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/plugin.xml +++ b/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/plugin.xml @@ -3,251 +3,2456 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -55,61 +36,40 @@ public abstract class AbstractUmlNattableCreateCommandHandler extends AbstractUm * * */ - @Override protected Command buildCommand() { Command createCmd = super.buildCommand(); - - final INattableModelManager nattableModelManager = TableMenuUtils.getTableManager(getActiveWorkbenchPart()); - if(nattableModelManager != null) { - CompositeCommand cmd = new CompositeCommand(""); //$NON-NLS-1$ - cmd.add(new EMFtoGMFCommandWrapper(createCmd)); - - final CreateElementRequest request = this.createRequest; - // depends on the synchronization of the axis manager - cmd.add(new AbstractTransactionalCommand(getEditingDomain(), Messages.AbstractNattableCreateCommandHandler_AddElementCommand, null) { - - @Override - protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { - EObject newElement = request.getNewElement(); - Collection toAdd = new ArrayList(); - toAdd.add(newElement); - Command tmp = nattableModelManager.getAddRowElementCommand(toAdd); - if(tmp != null) { - tmp.execute(); - } - return CommandResult.newOKCommandResult(); - } - }); - return new org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper(cmd); - - } - return UnexecutableCommand.INSTANCE; + return TableMenuUtils.buildNattableCreationCommand(createCmd, this.createRequest); } - @Override + /** + * Obtain the context of the active table editor. + * + * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractUmlCreateCommandHandler#getCommandContext() + * + * @return + */ protected ICommandContext getCommandContext() { return TableMenuUtils.getTableCommandContext(TableMenuUtils.getTableManager(getActiveWorkbenchPart())); } - @Override + /** + * Verify if this handler is currently active and the command can execute. Additionally, verify if this table can add this type of element. + * + * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#setEnabled(java.lang.Object) + * + * @param evaluationContext + */ public void setEnabled(Object evaluationContext) { - Command command = getCommand(); - boolean isEnabled = command.canExecute(); + INattableModelManager tableManager = TableMenuUtils.getTableManager(getActiveWorkbenchPart()); + boolean isEnabled = tableManager.canCreateRowElement(getElementTypeToCreate().getId()); if(isEnabled) { - IElementType newElementType = getElementTypeToCreate(); - INattableModelManager tableManager = TableMenuUtils.getTableManager(getActiveWorkbenchPart()); - String id = newElementType.getId(); - Set visibleCommands = getFilterIds(); - isEnabled = tableManager.canCreateRowElement(id); - isEnabled &= visibleCommands.contains(id); + //we test the enable of the super implementation + super.setEnabled(evaluationContext); + isEnabled = super.isEnabled(); } setBaseEnabled(isEnabled); } - @Override - public void dispose() { - super.dispose(); - } } diff --git a/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/src/org/eclipse/papyrus/uml/nattable/menu/util/TableMenuUtils.java b/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/src/org/eclipse/papyrus/uml/nattable/menu/util/TableMenuUtils.java index 37963dbc973..1c081c3d832 100644 --- a/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/src/org/eclipse/papyrus/uml/nattable/menu/util/TableMenuUtils.java +++ b/sandbox/TableV3/org.eclipse.papyrus.uml.nattable.menu/src/org/eclipse/papyrus/uml/nattable/menu/util/TableMenuUtils.java @@ -11,12 +11,27 @@ *****************************************************************************/ package org.eclipse.papyrus.uml.nattable.menu.util; +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.common.command.Command; +import org.eclipse.emf.common.command.UnexecutableCommand; import org.eclipse.emf.ecore.EObject; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper; import org.eclipse.papyrus.infra.core.sasheditor.editor.AbstractMultiPageSashEditor; import org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager; +import org.eclipse.papyrus.uml.nattable.menu.messages.Messages; import org.eclipse.papyrus.uml.service.types.utils.CommandContext; import org.eclipse.papyrus.uml.service.types.utils.ICommandContext; import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.PlatformUI; /** * Utilities for the creation of contextual menus from the Nattable editor @@ -63,4 +78,31 @@ public class TableMenuUtils { return null; } + public static Command buildNattableCreationCommand(Command createCmd, final CreateElementRequest createElementRequest) { + final INattableModelManager nattableModelManager = getTableManager(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart()); + if(nattableModelManager != null) { + CompositeCommand cmd = new CompositeCommand(""); //$NON-NLS-1$ + cmd.add(new EMFtoGMFCommandWrapper(createCmd)); + + // depends on the synchronization of the axis manager + cmd.add(new AbstractTransactionalCommand(createElementRequest.getEditingDomain(), Messages.AbstractNattableCreateCommandHandler_AddElementCommand, null) { + + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + EObject newElement = createElementRequest.getNewElement(); + Collection toAdd = new ArrayList(); + toAdd.add(newElement); + Command tmp = nattableModelManager.getAddRowElementCommand(toAdd); + if(tmp != null) { + tmp.execute(); + } + return CommandResult.newOKCommandResult(); + } + }); + return new org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper(cmd); + + } + return UnexecutableCommand.INSTANCE; + } + } -- cgit v1.2.3