Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/migration/ComponentReconcilerForCompartment_1_2_0.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/migration/ComponentReconcilerForCompartment_1_2_0.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/migration/ComponentReconcilerForCompartment_1_2_0.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/migration/ComponentReconcilerForCompartment_1_2_0.java
new file mode 100644
index 00000000000..65ceca684d0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/migration/ComponentReconcilerForCompartment_1_2_0.java
@@ -0,0 +1,63 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ * Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - Initial API and Implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.diagram.component.custom.migration;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.ReconcilerForCompartment;
+
+/**
+ * Diagram Reconciler for compartment from 1.1.0 to 1.2.0
+ */
+public class ComponentReconcilerForCompartment_1_2_0 extends ReconcilerForCompartment {
+
+ private static final String ComponentCompositeCompartmentEditPart_VISUAL_ID = "7001"; //$NON-NLS-1$
+ private static final String ModelPackageableElementCompartmentEditPart_VISUAL_ID = "7006"; //$NON-NLS-1$
+ private static final String PackagePackageableElementCompartmentEditPart_VISUAL_ID = "7002"; //$NON-NLS-1$
+ private static final String ModelPackageableElementCompartmentEditPartCN_VISUAL_ID = "7007"; //$NON-NLS-1$
+ private static final String PackagePackageableElementCompartmentEditPartCN_VISUAL_ID = "7005"; //$NON-NLS-1$
+ private static final String ComponentCompositeCompartmentEditPartCN_VISUAL_ID = "7003"; //$NON-NLS-1$
+ private static final String ComponentCompositeCompartmentEditPartPCN_VISUAL_ID = "7004"; //$NON-NLS-1$
+ private static final String InterfaceAttributeCompartmentEditPart_VISUAL_ID = "7008"; //$NON-NLS-1$
+ private static final String InterfaceOperationCompartmentEditPart_VISUAL_ID = "7009"; //$NON-NLS-1$
+ private static final String InterfaceAttributeCompartmentEditPartCN_VISUAL_ID = "7010"; //$NON-NLS-1$
+ private static final String InterfaceOperationCompartmentEditPartCN_VISUAL_ID = "7011"; //$NON-NLS-1$
+
+ /** The compartments visual id. */
+ private List<String> compartmentsVisualID = Arrays.asList(
+ ComponentCompositeCompartmentEditPart_VISUAL_ID,
+ ModelPackageableElementCompartmentEditPart_VISUAL_ID,
+ PackagePackageableElementCompartmentEditPart_VISUAL_ID,
+ ModelPackageableElementCompartmentEditPartCN_VISUAL_ID,
+ PackagePackageableElementCompartmentEditPartCN_VISUAL_ID,
+ ComponentCompositeCompartmentEditPartCN_VISUAL_ID,
+ ComponentCompositeCompartmentEditPartPCN_VISUAL_ID,
+ InterfaceAttributeCompartmentEditPart_VISUAL_ID,
+ InterfaceOperationCompartmentEditPart_VISUAL_ID,
+ InterfaceAttributeCompartmentEditPartCN_VISUAL_ID,
+ InterfaceOperationCompartmentEditPartCN_VISUAL_ID);
+
+ /**
+ * Gets the compartments visual id.
+ *
+ * @return the compartments visual id
+ * @see org.eclipse.papyrus.infra.gmfdiag.common.reconciler.ReconcilerForCompartment#getCompartmentsVisualID()
+ */
+ @Override
+ public List<String> getCompartmentsVisualID() {
+ return compartmentsVisualID;
+ }
+
+}

Back to the top