Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraelkouhen2011-07-20 13:29:03 +0000
committeraelkouhen2011-07-20 13:29:03 +0000
commitd08f8331d878381ace0206bc5e5933d423ffc637 (patch)
tree5a326d3de3a30c8d22d5a5daba44751859fa823e /plugins
parent4ec071a594533812a869040c1da2d6cb8a73b58b (diff)
downloadorg.eclipse.papyrus-d08f8331d878381ace0206bc5e5933d423ffc637.tar.gz
org.eclipse.papyrus-d08f8331d878381ace0206bc5e5933d423ffc637.tar.xz
org.eclipse.papyrus-d08f8331d878381ace0206bc5e5933d423ffc637.zip
Bug 341125 : [deployment, component diagram] Allow Drag and Drop from explorer
DnD from ModelExplorer to Component and Deployment Diagram enabled.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/model/DeploymentDiagram.gmfgen48
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartACN.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartCN.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentBodyEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPartCN.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/LinkDescriptorEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPart.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPartCN.java17
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPart.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPartCN.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/UMLEditPartFactory.java15
49 files changed, 648 insertions, 144 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/model/DeploymentDiagram.gmfgen b/plugins/uml/org.eclipse.papyrus.diagram.deployment/model/DeploymentDiagram.gmfgen
index a1d41f61a4e..20beaf1436f 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/model/DeploymentDiagram.gmfgen
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/model/DeploymentDiagram.gmfgen
@@ -32,6 +32,10 @@
xsi:type="gmfgen:CustomBehaviour"
key=""REMOVE_ORPHAN_VIEW""
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<domainDiagramElement
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Model"/>
<childNodes
@@ -88,6 +92,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="&quot;RESIZE_BORDER_ITEMS&quot;"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
@@ -185,6 +193,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="&quot;RESIZE_BORDER_ITEMS&quot;"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
@@ -280,6 +292,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="&quot;RESIZE_BORDER_ITEMS&quot;"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
@@ -372,6 +388,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
@@ -469,6 +489,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
@@ -532,6 +556,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment"/>
@@ -590,6 +618,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint"/>
@@ -707,6 +739,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="&quot;RESIZE_BORDER_ITEMS&quot;"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
@@ -800,6 +836,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="&quot;RESIZE_BORDER_ITEMS&quot;"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
@@ -889,6 +929,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
@@ -983,6 +1027,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="&quot;RESIZE_BORDER_ITEMS&quot;"
editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<modelFacet>
<metaClass
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
index 0ec7ff9ab9c..8d030e518b5 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
index 56b4162eaab..962fc461765 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
index 64fe29bb827..36b17c81f1d 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPart.java
index 2234929ea8a..37bda157d62 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -39,6 +48,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.ArtifactItemSemanticEditPolicy;
@@ -91,6 +101,7 @@ CompositeEditPart {
installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartACN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartACN.java
index fe95eed731f..669bca2056d 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartACN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartACN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -39,6 +48,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.ArtifactItemSemanticEditPolicyACN;
@@ -91,6 +101,7 @@ CompositeEditPart {
installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartCN.java
index 9bed04d12fc..997aea559ae 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -39,6 +48,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.ArtifactItemSemanticEditPolicyCN;
@@ -91,6 +101,7 @@ CompositeEditPart {
installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPart.java
index 8a973231349..94a3a8c1b8c 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
index b52c812f780..6ff9f79db9c 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
index ec8211bf304..cb27573e400 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
index 4cd9956580a..869c1fda546 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentBodyEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentBodyEditPart.java
index 328a347c16e..9d7b7c3191a 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentBodyEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentBodyEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentEditPart.java
index 8a49f59a5e5..5f7469e6c32 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/CommentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -35,6 +44,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDis
import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
import org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.edit.policies.CommentItemSemanticEditPolicy;
import org.eclipse.papyrus.diagram.deployment.part.UMLDiagramEditorPlugin;
import org.eclipse.papyrus.diagram.deployment.part.UMLVisualIDRegistry;
@@ -81,6 +91,7 @@ AbstractCommentEditPart {
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
index 87bbc47f5d3..28c4b2e3ef3 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintEditPart.java
index b4089128961..52b5f50049b 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -35,6 +44,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDis
import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.edit.policies.ConstraintItemSemanticEditPolicy;
import org.eclipse.papyrus.diagram.deployment.part.UMLDiagramEditorPlugin;
import org.eclipse.papyrus.diagram.deployment.part.UMLVisualIDRegistry;
@@ -81,6 +91,7 @@ AbstractConstraintEditPart {
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintNameEditPart.java
index 4dcc91c8f38..da52194e2b9 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
index da6ab688f26..5bbfb74e9c9 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
index 02d7e99ee0a..e61eb772712 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyEditPart.java
index dd25744c366..1f519c6b9c5 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyNameEditPart.java
index 9b977ffeac3..f989476531c 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DependencyNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
index 23661768415..cb4b4185846 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
index 42847f0ecf6..f24573f54d2 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
@@ -24,6 +33,7 @@ import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
import org.eclipse.papyrus.diagram.common.providers.ViewInfo;
import org.eclipse.papyrus.diagram.common.util.MDTUtil;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.edit.policies.DeploymentDiagramItemSemanticEditPolicy;
import org.eclipse.papyrus.diagram.deployment.part.UMLVisualIDRegistry;
@@ -113,6 +123,7 @@ public class DeploymentDiagramEditPart extends DiagramEditPart {
installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentEditPart.java
index 08ec416c73b..7f251578d8d 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentNameEditPart.java
index 749cebb1601..544978f88e0 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeploymentNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
index 091cc1137ae..14c6ea483f4 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
index 2bf1e447b38..c3c04ccfd92 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPart.java
index 8d53aa36980..1f4dfc72a15 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -40,6 +49,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.DeviceFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.DeviceItemSemanticEditPolicy;
@@ -94,6 +104,7 @@ DeploymentNodeEditPart {
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPartCN.java
index a1f8eb80cf4..55a0c87c454 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -40,6 +49,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.DeviceFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.DeviceItemSemanticEditPolicyCN;
@@ -94,6 +104,7 @@ DeploymentNodeEditPart {
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPart.java
index 7e5d2e44c8b..3f034fc9b14 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
index 726f3620129..04d9bcb8f84 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
index f33dc821216..9ebde4949e1 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
index 7662666f372..327c7feb86d 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
index 65ca2847ae9..bce44793980 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -40,6 +49,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.ExecutionEnvironmentItemSemanticEditPolicy;
@@ -94,6 +104,7 @@ DeploymentNodeEditPart {
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
index 69e6c423c05..a66dddfdc82 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -40,6 +49,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.ExecutionEnvironmentItemSemanticEditPolicyCN;
@@ -94,6 +104,7 @@ DeploymentNodeEditPart {
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
index f8f23ad6231..0ec9c80650d 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
index 9aac5495f10..5d46b53cabd 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
index e920343714e..caa4caf4b74 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationEditPart.java
index 7b035d0a299..805f784f1f1 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/GeneralizationEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/LinkDescriptorEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
index 4ce5f3102c8..2224c558389 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
index c536e2e10bd..4bab5f9c95c 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationEditPart.java
index 950c266263e..7c7dbbca3c1 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.Connection;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationNameEditPart.java
index bd4799e291c..765f04c1926 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/ManifestationNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
index b6982c8f899..a38f332f5ca 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
index f475218298b..0ee8e7a0dc8 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.geometry.Dimension;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPart.java
index af3184d3122..ac2c5cedbba 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -38,6 +47,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.NodeFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.NodeItemSemanticEditPolicy;
@@ -92,6 +102,7 @@ DeploymentNodeEditPart {
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPartCN.java
index 8948e615da6..b4642024c42 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.ArrayList;
@@ -39,6 +48,7 @@ import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditP
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.diagram.deployment.custom.figure.nodes.NodeFigure;
import org.eclipse.papyrus.diagram.deployment.edit.policies.NodeItemSemanticEditPolicyCN;
@@ -93,6 +103,7 @@ DeploymentNodeEditPart {
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPart.java
index 1b102573222..fc1135c7d2a 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPart.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPart.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPartCN.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPartCN.java
index f2ef8034b85..8aed54bb02b 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPartCN.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/NodeNameEditPartCN.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import java.util.Collections;
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/UMLEditPartFactory.java b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/UMLEditPartFactory.java
index 62cd0aeccfd..9a4972f3243 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/UMLEditPartFactory.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.deployment/src/org/eclipse/papyrus/diagram/deployment/edit/parts/UMLEditPartFactory.java
@@ -1,6 +1,15 @@
-/*
- *
- */
+/*****************************************************************************
+ * Copyright (c) 2011 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:
+ * Amine EL KOUHEN (CEA LIST) Amine.Elkouhen@cea.fr
+ *****************************************************************************/
package org.eclipse.papyrus.diagram.deployment.edit.parts;
import org.eclipse.draw2d.FigureUtilities;

Back to the top