1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*****************************************************************************
* 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.deployment.custom.migration;
import java.util.Arrays;
import java.util.List;
import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.ReconcilerForCompartment;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
/**
* Diagram Reconciler for compartment from 1.1.0 to 1.2.0
*/
public class DeploymentReconcilerForCompartment extends ReconcilerForCompartment {
/** The compartments visual id. */
private List<String> compartmentsVisualID = Arrays.asList(
ModelPackageableElementCompartmentEditPart.VISUAL_ID,
PackagePackageableElementCompartmentEditPart.VISUAL_ID,
DeviceCompositeCompartmentEditPart.VISUAL_ID,
ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID,
NodeCompositeCompartmentEditPart.VISUAL_ID,
ArtifactCompositeCompartmentEditPart.VISUAL_ID,
ModelPackageableElementCompartmentEditPartCN.VISUAL_ID,
PackagePackageableElementCompartmentEditPartCN.VISUAL_ID,
DeviceCompositeCompartmentEditPartCN.VISUAL_ID,
ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID,
NodeCompositeCompartmentEditPartCN.VISUAL_ID,
ArtifactCompositeCompartmentEditPartCN.VISUAL_ID,
ArtifactCompositeCompartmentEditPartACN.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;
}
}
|