Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2019-01-18 15:06:52 +0000
committerNicolas FAUVERGUE2019-01-21 13:22:47 +0000
commit29d753e8d827c265f178447881fc47ef29941b6b (patch)
treeceeaa78fc981a1706f48387228724f0e21b79e4d /plugins/uml/diagram
parent6f2f1aa1dda95ad55d6f82bd25b5b4de53cddf48 (diff)
downloadorg.eclipse.papyrus-29d753e8d827c265f178447881fc47ef29941b6b.tar.gz
org.eclipse.papyrus-29d753e8d827c265f178447881fc47ef29941b6b.tar.xz
org.eclipse.papyrus-29d753e8d827c265f178447881fc47ef29941b6b.zip
Bug 528325: [DeploymentDiagram] EditPolicy "RemoveOrphanViewPolicy" must
be disabled on Deployment Diagram https://bugs.eclipse.org/bugs/show_bug.cgi?id=528325 Set RemoveOrphanViewPolicy" on deprecated and disabled it. Change-Id: I7d03e5dbd8d0d082c6ce8dc3127f530ce5ed57cd Signed-off-by: Fanch BONNABESSE <fanch.bonnabesse@all4tec.net> Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
Diffstat (limited to 'plugins/uml/diagram')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java3
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/helpers/MultiDependencyHelper.java29
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/DeploymentDiagramChangeStereotypedShapeEditpolicy.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/RemoveOrphanViewPolicy.java7
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/factory/CustomUMLeditPartFactory.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/figure/nodes/DeploymentSpecificationFigure.java4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconcilerForCompartment_1_2_0.java5
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_1_0.java5
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_2_0.java1
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen74
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/pom.xml2
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java4
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java40
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java40
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java40
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java15
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java35
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java35
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathAppliedStereotypeEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathEditPart.java20
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathNameEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java15
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java35
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java35
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java35
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java49
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java15
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java20
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java25
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java11
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java20
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierEditPart.java38
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierFloatingLabelEditPart.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactEditPart.java38
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactFloatingLabelEditPart.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElEditPart.java38
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElFloatingLabelEditPart.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationEditPart.java38
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationFloatingLabelEditPart.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java39
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java39
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java20
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java15
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java20
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java45
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java49
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java49
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java44
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java31
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java31
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java31
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java39
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java47
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java37
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java49
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java49
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java14
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java6
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java17
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java10
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java9
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java2
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java19
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java5
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java175
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java7
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java21
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java34
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java258
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java26
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java12
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java194
-rwxr-xr-xplugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java7
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java2
133 files changed, 3013 insertions, 1375 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF
index dcc61b1947a..b6401e22cf7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF
@@ -68,8 +68,8 @@ Require-Bundle: org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide;bundle-v
org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="[2.0.0,4.0.0)"
Bundle-Vendor: %providerName
Eclipse-LazyStart: true
-Bundle-Version: 3.1.200.qualifier
+Bundle-Version: 3.2.0.qualifier
Bundle-Activator: org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin
Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.uml.diagram.deployment;singleton:=true
+Bundle-SymbolicName: org.eclipse.papyrus.uml.diagram.deployment; singleton:=true
Automatic-Module-Name: org.eclipse.papyrus.uml.diagram.deployment
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java
index 8d10ed58ba0..d920eb96903 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java
@@ -16,6 +16,7 @@
package org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command;
+import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
@@ -27,7 +28,7 @@ import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSeman
import org.eclipse.uml2.uml.Dependency;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Package;
-import org.eclipse.core.commands.ExecutionException;
+
/**
* because of the nature of this relation the test about can execute has to be change
*
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/helpers/MultiDependencyHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/helpers/MultiDependencyHelper.java
index c41e9813531..624369f4e25 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/helpers/MultiDependencyHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/helpers/MultiDependencyHelper.java
@@ -50,8 +50,8 @@ import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
import org.eclipse.gmf.runtime.notation.Edge;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.commands.DeleteLinkDuringCreationCommand;
import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter;
+import org.eclipse.papyrus.uml.diagram.common.commands.DeleteLinkDuringCreationCommand;
import org.eclipse.papyrus.uml.diagram.common.helper.ElementHelper;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command.CustomDeferredCreateConnectionViewCommand;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command.DependencyDiamonViewCreateCommand;
@@ -95,7 +95,7 @@ public class MultiDependencyHelper extends ElementHelper {
// look for if an editpart exist for this element
Collection<?> values = viewer.getEditPartRegistry().values();
- Collection<EditPart> editPartSet = new ArrayList<EditPart>();
+ Collection<EditPart> editPartSet = new ArrayList<>();
for (Object object : values) {
if (object instanceof EditPart) {
editPartSet.add((EditPart) object);
@@ -123,8 +123,10 @@ public class MultiDependencyHelper extends ElementHelper {
aBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), new SemanticAdapter(null, sourceEditPart.getModel()), (IAdaptable) nodeCreation
.getCommandResult().getReturnValue(), sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewBranchDescriptor, null);
} else {
- aBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), (IAdaptable) nodeCreation.getCommandResult().getReturnValue(), new SemanticAdapter(null,
- sourceEditPart.getModel()), sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewBranchDescriptor, null);
+ aBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), (IAdaptable) nodeCreation.getCommandResult().getReturnValue(),
+ new SemanticAdapter(null,
+ sourceEditPart.getModel()),
+ sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewBranchDescriptor, null);
}
aBranchCommand.setElement(dependency);
@@ -161,8 +163,8 @@ public class MultiDependencyHelper extends ElementHelper {
public Command dropMutliDependency(Dependency dependency, EditPartViewer viewer, PreferencesHint diagramPreferencesHint, Point location, View containerView) {
CompoundCommand command = new CompoundCommand();
// 0. Obtain list of property to display
- ArrayList<NamedElement> endToDisplaySource = new ArrayList<NamedElement>(dependency.getClients());
- ArrayList<NamedElement> endToDisplayTarget = new ArrayList<NamedElement>(dependency.getSuppliers());
+ ArrayList<NamedElement> endToDisplaySource = new ArrayList<>(dependency.getClients());
+ ArrayList<NamedElement> endToDisplayTarget = new ArrayList<>(dependency.getSuppliers());
// 1. creation of the diamond of the Dependency
DependencyDiamonViewCreateCommand nodeCreation = new DependencyDiamonViewCreateCommand(getEditingDomain(), containerView, viewer, diagramPreferencesHint, location, new SemanticAdapter(dependency, null));
command.add(new ICommandProxy(nodeCreation));
@@ -376,7 +378,8 @@ public class MultiDependencyHelper extends ElementHelper {
// 4. reconstruction of the old link by taking in account the old
// connection
- ConnectionViewDescriptor viewDescriptor = new ConnectionViewDescriptor(UMLElementTypes.Dependency_BranchEdge, ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint());
+ ConnectionViewDescriptor viewDescriptor = new ConnectionViewDescriptor(UMLElementTypes.Dependency_BranchEdge, ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(),
+ ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint());
// 5. reconstruction of the first branch between old source to node
ICommand firstBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), new SemanticAdapter(null, dependencyViewSource), (IAdaptable) nodeCreation
@@ -385,8 +388,10 @@ public class MultiDependencyHelper extends ElementHelper {
((CompoundCommand) command).add(new ICommandProxy(firstBranchCommand));
// 6. reconstruction of the second branch between node to old target
- ICommand secondBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), (IAdaptable) nodeCreation.getCommandResult().getReturnValue(), new SemanticAdapter(
- null, dependencyViewTarget), sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewDescriptor, null);
+ ICommand secondBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), (IAdaptable) nodeCreation.getCommandResult().getReturnValue(),
+ new SemanticAdapter(
+ null, dependencyViewTarget),
+ sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewDescriptor, null);
((CustomDeferredCreateConnectionViewCommand) secondBranchCommand).setElement(dependency);
((CompoundCommand) command).add(new ICommandProxy(secondBranchCommand));
@@ -395,8 +400,10 @@ public class MultiDependencyHelper extends ElementHelper {
if (dependencyView.equals((sourceEditPart.getModel()))) {
// third branch node and target
- thirdBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), (IAdaptable) nodeCreation.getCommandResult().getReturnValue(), new SemanticAdapter(null,
- targetEditPart.getModel()), sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewDescriptor, null);
+ thirdBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), (IAdaptable) nodeCreation.getCommandResult().getReturnValue(),
+ new SemanticAdapter(null,
+ targetEditPart.getModel()),
+ sourceEditPart.getViewer(), ((IGraphicalEditPart) sourceEditPart).getDiagramPreferencesHint(), viewDescriptor, null);
} else {
// // third branch source and node
thirdBranchCommand = new CustomDeferredCreateConnectionViewCommand(getEditingDomain(), ((IHintedType) UMLElementTypes.Dependency_BranchEdge).getSemanticHint(), new SemanticAdapter(null, sourceEditPart.getModel()), (IAdaptable) nodeCreation
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/DeploymentDiagramChangeStereotypedShapeEditpolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/DeploymentDiagramChangeStereotypedShapeEditpolicy.java
index 61cb71f937b..ea55030f9b6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/DeploymentDiagramChangeStereotypedShapeEditpolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/DeploymentDiagramChangeStereotypedShapeEditpolicy.java
@@ -84,7 +84,7 @@ public class DeploymentDiagramChangeStereotypedShapeEditpolicy extends ChangeSte
GraphicalEditPart gmfpart = (GraphicalEditPart) part;
DropObjectsRequest dropObjectsRequest = new DropObjectsRequest();
- ArrayList<EObject> list = new ArrayList<EObject>();
+ ArrayList<EObject> list = new ArrayList<>();
list.add(gmfpart.resolveSemanticElement());
dropObjectsRequest.setObjects(list);
dropObjectsRequest.setLocation(gmfpart.getFigure().getBounds().getLocation());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/RemoveOrphanViewPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/RemoveOrphanViewPolicy.java
index 74720b8fe43..f452acc2635 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/RemoveOrphanViewPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/RemoveOrphanViewPolicy.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2009 CEA LIST.
+ * Copyright (c) 2009, 2019 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
@@ -12,7 +12,7 @@
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.Tessier@cea.fr - Initial API and implementation
* Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Adaptation for Composite Diagram
-
+ * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 528325
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies;
@@ -29,7 +29,10 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.OrphanViewPolicy;
*
* See RemoveOrphanViewPolicy in Class Diagram
* </pre>
+ *
+ * @deprecated since 3.2
*/
+@Deprecated
public class RemoveOrphanViewPolicy extends OrphanViewPolicy {
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java
index 91c4268168b..34e3b4f2459 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java
@@ -35,7 +35,7 @@ public class CustomDefaultNamedElementItemSemanticEditPolicy extends DefaultSema
protected Command getSemanticCommand(IEditCommandRequest request) {
if (request instanceof ReorientRelationshipRequest) {
if (DependencyBranchEditPart.VISUAL_ID == getVisualID(request)) {
- return new GMFtoGEFCommandWrapper(new BranchDependenctReorientCommand((ReorientRelationshipRequest)request));
+ return new GMFtoGEFCommandWrapper(new BranchDependenctReorientCommand((ReorientRelationshipRequest) request));
}
}
return super.getSemanticCommand(request);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/factory/CustomUMLeditPartFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/factory/CustomUMLeditPartFactory.java
index edbaa01fffc..8579cc572c4 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/factory/CustomUMLeditPartFactory.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/factory/CustomUMLeditPartFactory.java
@@ -35,7 +35,7 @@ public class CustomUMLeditPartFactory extends UMLEditPartFactory {
if (model instanceof View) {
View view = (View) model;
String visualID = UMLVisualIDRegistry.getVisualID(view);
- if(visualID != null) {
+ if (visualID != null) {
switch (visualID) {
// redefined classes to modify the method createNodePlate
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/figure/nodes/DeploymentSpecificationFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/figure/nodes/DeploymentSpecificationFigure.java
index 5e27cbf3dee..036e1cbe81b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/figure/nodes/DeploymentSpecificationFigure.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/figure/nodes/DeploymentSpecificationFigure.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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 2.0
* which accompanies this distribution, and is available at
@@ -10,7 +10,7 @@
*
* Contributors:
* CEA LIST - Initial API and implementation
- *
+ *
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes;
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconcilerForCompartment_1_2_0.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconcilerForCompartment_1_2_0.java
index f01f9cf2ca1..c7bf7692484 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconcilerForCompartment_1_2_0.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconcilerForCompartment_1_2_0.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* 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 2.0
* which accompanies this distribution, and is available at
@@ -11,7 +11,7 @@
* 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;
@@ -22,6 +22,7 @@ import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.ReconcilerForCompartm
/**
* Diagram Reconciler for compartment from 1.1.0 to 1.2.0
+ *
* @since 3.0
*/
public class DeploymentReconcilerForCompartment_1_2_0 extends ReconcilerForCompartment {
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_1_0.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_1_0.java
index 1fcb7eada7f..ee8b1774585 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_1_0.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_1_0.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2009-2015 CEA LIST.
*
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
@@ -25,6 +25,7 @@ import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.DiagramReconciler;
/**
* Deployment Diagram Reconciler from 1.0.0 to 1.1.0
+ *
* @since 3.0
*/
public class DeploymentReconciler_1_1_0 extends DiagramReconciler {
@@ -55,7 +56,7 @@ public class DeploymentReconciler_1_1_0 extends DiagramReconciler {
* @return the floating label map
*/
private Map<String, String> getFloatingLabelMap() {
- Map<String, String> map = new HashMap<String, String>();
+ Map<String, String> map = new HashMap<>();
map.put(ArtifactEditPart_VISUAL_ID, ArtifactFloatingLabelEditPart_VISUAL_ID);
map.put(ArtifactEditPartACN_VISUAL_ID, ArtifactFloatingLabelEditPartACN_VISUAL_ID);
map.put(ArtifactEditPartCN_VISUAL_ID, ArtifactFloatingLabelEditPartCN_VISUAL_ID);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_2_0.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_2_0.java
index b1cb44ada51..374e0d14efb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_2_0.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/migration/DeploymentReconciler_1_2_0.java
@@ -30,6 +30,7 @@ import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.DiagramReconciler;
/**
* Deployment Diagram Reconciler from 1.1.0 to 1.2.0
+ *
* @since 3.0
*/
public class DeploymentReconciler_1_2_0 extends DiagramReconciler {
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java
index c1d02abaed4..981d0fa0d83 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/providers/CustomUMLParserProvider.java
@@ -32,7 +32,7 @@ public class CustomUMLParserProvider extends UMLParserProvider {
protected IParser getAppliedStereotypeParser(String defaultEditString) {
return new AppliedStereotypeParser(defaultEditString);
}
-
+
/**
* @since 3.0
*/
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
index c5371c30adc..48fe2f75527 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
@@ -38,10 +38,6 @@
figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.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.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<domainDiagramElement
@@ -236,10 +232,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -328,10 +320,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -418,10 +406,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -509,10 +493,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -599,10 +579,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -690,10 +666,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -786,10 +758,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
<behaviour
@@ -909,10 +877,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
<behaviour
@@ -1029,10 +993,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
<behaviour
@@ -1277,10 +1237,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.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.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<behaviour
@@ -1382,10 +1338,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.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.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<behaviour
@@ -1487,10 +1439,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.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.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<behaviour
@@ -1957,10 +1905,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -2047,10 +1991,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -2141,10 +2081,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
<behaviour
@@ -2253,10 +2189,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
@@ -2412,10 +2344,6 @@
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
<behaviour
xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.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.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
<behaviour
@@ -3394,7 +3322,7 @@
iD="org.eclipse.papyrus.uml.diagram.deployment"
name="Papyrus Deployment Diagram "
provider="Eclipse Modeling Project"
- version="3.0.0.qualifier">
+ version="3.2.0.qualifier">
<requiredPlugins>org.eclipse.draw2d</requiredPlugins>
<requiredPlugins>org.eclipse.gmf.runtime.draw2d.ui</requiredPlugins>
</plugin>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/pom.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/pom.xml
index 8ca943d4037..7d60ad7273d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/pom.xml
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/pom.xml
@@ -8,6 +8,6 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.papyrus.uml.diagram.deployment</artifactId>
- <version>3.1.200-SNAPSHOT</version>
+ <version>3.2.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project> \ No newline at end of file
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java
index d7a5c2933d2..574ec261b03 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
index fb4f4c5cc80..e48b4ae046b 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -56,6 +56,7 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ArtifactCompositeCompartmentEditPart_title;
}
@@ -63,6 +64,7 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
@@ -70,8 +72,8 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -81,6 +83,7 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -90,6 +93,7 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -98,6 +102,7 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -128,6 +133,7 @@ public class ArtifactCompositeCompartmentEditPart extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
index 0ed9362b390..5d0df971252 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -56,6 +56,7 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ArtifactCompositeCompartmentEditPartACN_title;
}
@@ -63,6 +64,7 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
@@ -70,8 +72,8 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyACN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyACN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -81,6 +83,7 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -90,6 +93,7 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -98,6 +102,7 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -128,6 +133,7 @@ public class ArtifactCompositeCompartmentEditPartACN extends LinkLFShapeCompartm
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
index 894477b7946..b8366c8083b 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -56,6 +56,7 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ArtifactCompositeCompartmentEditPartCN_title;
}
@@ -63,6 +64,7 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
@@ -70,8 +72,8 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyCN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -81,6 +83,7 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -90,6 +93,7 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -98,6 +102,7 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -128,6 +133,7 @@ public class ArtifactCompositeCompartmentEditPartCN extends LinkLFShapeCompartme
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java
index d3d85e52bfa..0466ac6e975 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -53,7 +53,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEd
import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -88,6 +87,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -97,7 +97,6 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- 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());
@@ -152,9 +151,11 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -177,14 +178,17 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ArtifactFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
* @generated
*/
+ @Override
public ArtifactFigure getPrimaryShape() {
return (ArtifactFigure) primaryShape;
}
@@ -201,7 +205,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
if (childEditPart instanceof ArtifactCompositeCompartmentEditPart) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ArtifactCompositeCompartmentEditPart) childEditPart).getFigure());
return true;
}
@@ -227,6 +231,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -237,6 +242,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -247,6 +253,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ArtifactCompositeCompartmentEditPart) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -260,6 +267,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof ArtifactFloatingLabelEditPart) {
IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
@@ -272,6 +280,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -279,12 +288,13 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -293,9 +303,12 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -308,6 +321,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -318,6 +332,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -327,6 +342,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -334,6 +350,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -343,6 +360,7 @@ public class ArtifactEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java
index 71bdb0fe1f1..bdb64c88a98 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -53,7 +53,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEd
import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -88,6 +87,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -97,7 +97,6 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- 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());
@@ -152,9 +151,11 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -177,14 +178,17 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ArtifactFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
* @generated
*/
+ @Override
public ArtifactFigure getPrimaryShape() {
return (ArtifactFigure) primaryShape;
}
@@ -201,7 +205,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
if (childEditPart instanceof ArtifactCompositeCompartmentEditPartACN) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ArtifactCompositeCompartmentEditPartACN) childEditPart).getFigure());
return true;
}
@@ -227,6 +231,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -237,6 +242,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -247,6 +253,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ArtifactCompositeCompartmentEditPartACN) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -260,6 +267,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof ArtifactFloatingLabelEditPartACN) {
IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
@@ -272,6 +280,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -279,12 +288,13 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -293,9 +303,12 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -308,6 +321,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -318,6 +332,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -327,6 +342,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -334,6 +350,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -343,6 +360,7 @@ public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartACN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java
index 2a74f7dd335..cc9ebb7c899 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -53,7 +53,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEd
import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -88,6 +87,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -97,7 +97,6 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- 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());
@@ -152,9 +151,11 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -177,14 +178,17 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ArtifactFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
* @generated
*/
+ @Override
public ArtifactFigure getPrimaryShape() {
return (ArtifactFigure) primaryShape;
}
@@ -201,7 +205,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
if (childEditPart instanceof ArtifactCompositeCompartmentEditPartCN) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ArtifactCompositeCompartmentEditPartCN) childEditPart).getFigure());
return true;
}
@@ -227,6 +231,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -237,6 +242,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -247,6 +253,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ArtifactCompositeCompartmentEditPartCN) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -260,6 +267,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof ArtifactFloatingLabelEditPartCN) {
IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
@@ -272,6 +280,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -279,12 +288,13 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -293,9 +303,12 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -308,6 +321,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -318,6 +332,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -327,6 +342,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -334,6 +350,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -343,6 +360,7 @@ public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java
index aed6b855123..76848186afd 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class ArtifactFloatingLabelEditPart extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java
index 0aac1ceeb3a..21b8bcca8c5 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape_ACN, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class ArtifactFloatingLabelEditPartACN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java
index 25e6018f683..01f2d55fa8d 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class ArtifactFloatingLabelEditPartCN extends FloatingLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java
index 17c26f9095f..cd4903adeb3 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
index 4df4a648018..9010b4b59e2 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape_ACN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
index cc78972dc74..7c4c56d95b3 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
index 75412bac5aa..afd53f801d7 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -22,8 +22,8 @@ import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPar
import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class CommentAnnotatedElementEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -41,6 +41,7 @@ public class CommentAnnotatedElementEditPart extends UMLConnectionNodeEditPart i
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -48,12 +49,13 @@ public class CommentAnnotatedElementEditPart extends UMLConnectionNodeEditPart i
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new SimpleDashedEdgeFigure();
}
@@ -61,6 +63,7 @@ public class CommentAnnotatedElementEditPart extends UMLConnectionNodeEditPart i
/**
* @generated
*/
+ @Override
public SimpleDashedEdgeFigure getPrimaryShape() {
return (SimpleDashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java
index ed4e98920ae..048f5a28028 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Comment_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class CommentBodyEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java
index a6dd8c92b9e..a7134354e76 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Comment_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java
index c4788c7f9f5..f275899bb2b 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -72,6 +72,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -116,9 +117,11 @@ public class CommentEditPart extends AbstractCommentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -127,14 +130,17 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new HTMLCornerBentFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure
+ *
* @generated
*/
+ @Override
public HTMLCornerBentFigure getPrimaryShape() {
return (HTMLCornerBentFigure) primaryShape;
}
@@ -165,6 +171,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -175,6 +182,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -185,6 +193,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -192,6 +201,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
return result;
@@ -199,12 +209,13 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -213,9 +224,12 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -228,6 +242,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -238,6 +253,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -247,6 +263,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -254,6 +271,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -263,6 +281,7 @@ public class CommentEditPart extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java
index cff5ab62e5f..a0944a9b11c 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -72,6 +72,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -116,9 +117,11 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -127,14 +130,17 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new HTMLCornerBentFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure
+ *
* @generated
*/
+ @Override
public HTMLCornerBentFigure getPrimaryShape() {
return (HTMLCornerBentFigure) primaryShape;
}
@@ -165,6 +171,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -175,6 +182,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -185,6 +193,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -192,6 +201,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
return result;
@@ -199,12 +209,13 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -213,9 +224,12 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -228,6 +242,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -238,6 +253,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -247,6 +263,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -254,6 +271,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -263,6 +281,7 @@ public class CommentEditPartCN extends AbstractCommentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathAppliedStereotypeEditPart.java
index 9becff01137..5ac2193f3d3 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathAppliedStereotypeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.CommunicationPath_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Stereotype";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class CommunicationPathAppliedStereotypeEditPart extends PapyrusLabelEdit
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathEditPart.java
index 938eb013042..50e39d16ab9 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -20,13 +20,14 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.figure.edge.AssociationFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class CommunicationPathEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -44,10 +45,11 @@ public class CommunicationPathEditPart extends UMLConnectionNodeEditPart impleme
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
}
@@ -69,6 +71,7 @@ public class CommunicationPathEditPart extends UMLConnectionNodeEditPart impleme
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -92,6 +95,7 @@ public class CommunicationPathEditPart extends UMLConnectionNodeEditPart impleme
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -101,12 +105,13 @@ public class CommunicationPathEditPart extends UMLConnectionNodeEditPart impleme
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new AssociationFigure();
}
@@ -114,6 +119,7 @@ public class CommunicationPathEditPart extends UMLConnectionNodeEditPart impleme
/**
* @generated
*/
+ @Override
public AssociationFigure getPrimaryShape() {
return (AssociationFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathNameEditPart.java
index 513adcb636b..565a02ae98b 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommunicationPathNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.CommunicationPath_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Name";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class CommunicationPathNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
index 9a57aa65b13..0ed38cdfdb1 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -22,8 +22,8 @@ import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPar
import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class ConstraintConstrainedElementEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -41,6 +41,7 @@ public class ConstraintConstrainedElementEditPart extends UMLConnectionNodeEditP
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -48,12 +49,13 @@ public class ConstraintConstrainedElementEditPart extends UMLConnectionNodeEditP
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new SimpleDashedEdgeFigure();
}
@@ -61,6 +63,7 @@ public class ConstraintConstrainedElementEditPart extends UMLConnectionNodeEditP
/**
* @generated
*/
+ @Override
public SimpleDashedEdgeFigure getPrimaryShape() {
return (SimpleDashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java
index 196ec2a152e..83383f8a125 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -71,6 +71,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -114,9 +115,11 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -125,14 +128,17 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ConstraintFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure
+ *
* @generated
*/
+ @Override
public ConstraintFigure getPrimaryShape() {
return (ConstraintFigure) primaryShape;
}
@@ -170,6 +176,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -180,6 +187,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -190,6 +198,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -197,6 +206,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
return result;
@@ -204,12 +214,13 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -218,9 +229,12 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -233,6 +247,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -243,6 +258,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -252,6 +268,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -259,6 +276,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -268,6 +286,7 @@ public class ConstraintEditPart extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java
index 66c00eac128..cb128fbab92 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -71,6 +71,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -114,9 +115,11 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -125,14 +128,17 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ConstraintFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure
+ *
* @generated
*/
+ @Override
public ConstraintFigure getPrimaryShape() {
return (ConstraintFigure) primaryShape;
}
@@ -170,6 +176,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -180,6 +187,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -190,6 +198,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -197,6 +206,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
return result;
@@ -204,12 +214,13 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -218,9 +229,12 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -233,6 +247,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -243,6 +258,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -252,6 +268,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -259,6 +276,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -268,6 +286,7 @@ public class ConstraintEditPartCN extends AbstractConstraintEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java
index de3f125daa3..779ade50344 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Constraint_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ConstraintNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java
index c5c2bb47581..a6c32620a48 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Constraint_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
index 3a698bae0ea..fb4825db520 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Constraint_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java
index 325a2ddc9a4..a00b277f950 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Constraint_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPar
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java
index d14fc924ca8..673fa739595 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -74,6 +74,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -119,9 +120,11 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -130,14 +133,17 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new RoundedCompartmentFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.RoundedCompartmentFigure
+ *
* @generated
*/
+ @Override
public RoundedCompartmentFigure getPrimaryShape() {
return (RoundedCompartmentFigure) primaryShape;
}
@@ -168,6 +174,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -178,6 +185,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -188,6 +196,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -195,6 +204,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(100, 50);
return result;
@@ -202,12 +212,13 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -216,9 +227,12 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -231,6 +245,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -241,6 +256,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -250,6 +266,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -257,6 +274,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -266,6 +284,7 @@ public class DefaultNamedElementEditPart extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DefaultNamedElementNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java
index ba4a086ef1b..550ced51377 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -58,7 +58,6 @@ import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.ILabelEditor
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.IPopupEditorHelper;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.DirectEditorsUtil;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
@@ -69,7 +68,6 @@ import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.edit.policies.DefaultNo
import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
import org.eclipse.swt.SWT;
@@ -115,12 +113,14 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -135,6 +135,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -208,6 +209,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -215,6 +217,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -222,6 +225,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -260,6 +264,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -275,6 +280,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -294,6 +300,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -326,6 +333,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -336,6 +344,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -343,6 +352,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.NamedElement_DefaultShape, getParserElement(), this, VISUAL_ID);
@@ -405,6 +415,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -494,6 +505,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -563,6 +575,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -578,6 +591,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -585,6 +599,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -600,6 +615,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -613,6 +629,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -635,7 +652,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -654,7 +671,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -667,7 +684,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -677,6 +694,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -692,6 +710,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -705,10 +724,12 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -738,6 +759,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -746,6 +768,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -754,6 +777,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -793,6 +817,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -806,6 +831,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -822,6 +848,7 @@ public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
index 4242df34038..70f0f6ceccf 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Dependency_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Stereotype";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java
index 29a5e58bd9d..614f2f74e81 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -24,8 +24,8 @@ import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
/**
- * @generated
- */
+ * @generated
+ */
public class DependencyBranchEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -43,6 +43,7 @@ public class DependencyBranchEditPart extends UMLConnectionNodeEditPart implemen
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -51,12 +52,13 @@ public class DependencyBranchEditPart extends UMLConnectionNodeEditPart implemen
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new DashedEdgeFigure();
}
@@ -64,6 +66,7 @@ public class DependencyBranchEditPart extends UMLConnectionNodeEditPart implemen
/**
* @generated
*/
+ @Override
public DashedEdgeFigure getPrimaryShape() {
return (DashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java
index 1a9641d6b4b..b6f6f7bfd82 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -21,14 +21,15 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
/**
- * @generated
- */
+ * @generated
+ */
public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -46,10 +47,11 @@ public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
}
@@ -72,6 +74,7 @@ public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -95,6 +98,7 @@ public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -104,12 +108,13 @@ public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new DashedEdgeFigure();
}
@@ -117,6 +122,7 @@ public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
public DashedEdgeFigure getPrimaryShape() {
return (DashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java
index 851545995f3..506865ba457 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Dependency_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Name";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class DependencyNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java
index 2bd2750c28a..9afc99d13df 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -76,6 +76,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -136,14 +137,17 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DependencyNodeFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure
+ *
* @generated
*/
+ @Override
public DependencyNodeFigure getPrimaryShape() {
return (DependencyNodeFigure) primaryShape;
}
@@ -151,6 +155,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof MultiDependencyLabelEditPart) {
BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
@@ -164,6 +169,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(10, 10);
return result;
@@ -171,12 +177,13 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -185,9 +192,12 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
return nodeShape; // use nodeShape itself as contentPane
}
@@ -195,6 +205,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -205,6 +216,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -214,6 +226,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -221,6 +234,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -230,6 +244,7 @@ public class DependencyNodeEditPart extends NodeEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(MultiDependencyLabelEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
index 54aa369840d..89a59c963bc 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Deployment_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Stereotype";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
index 6403893e0b9..a0e41a838ff 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -20,7 +20,6 @@ import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentS
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
/**
* @generated
@@ -47,6 +46,7 @@ public class DeploymentDiagramEditPart extends PapyrusDiagramEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
@@ -54,10 +54,9 @@ public class DeploymentDiagramEditPart extends PapyrusDiagramEditPart {
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelCanonicalEditPolicy());
- 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/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java
index b28da9408b1..6883aa29eaa 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -20,13 +20,14 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -44,10 +45,11 @@ public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
}
@@ -69,6 +71,7 @@ public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -92,6 +95,7 @@ public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -101,12 +105,13 @@ public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new DashedEdgeFigure();
}
@@ -114,6 +119,7 @@ public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITr
/**
* @generated
*/
+ @Override
public DashedEdgeFigure getPrimaryShape() {
return (DashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java
index a40b2fce301..6e5f6899479 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Deployment_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Name";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class DeploymentNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierEditPart.java
index e25f880c122..072260cbb3f 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -52,7 +52,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNode
import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -87,6 +86,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -96,7 +96,6 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
@@ -149,9 +148,11 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -174,14 +175,17 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeploymentSpecificationFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure
+ *
* @generated
*/
+ @Override
public DeploymentSpecificationFigure getPrimaryShape() {
return (DeploymentSpecificationFigure) primaryShape;
}
@@ -212,6 +216,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -222,6 +227,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -232,6 +238,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof IBorderItemEditPart) {
return getBorderedFigure().getBorderItemContainer();
@@ -242,6 +249,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof DeploymentSpecAsClassifierFloatingLabelEditPart) {
BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
@@ -255,6 +263,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -262,12 +271,13 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -276,9 +286,12 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -291,6 +304,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -301,6 +315,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -310,6 +325,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -317,6 +333,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -326,6 +343,7 @@ public class DeploymentSpecAsClassifierEditPart extends RoundedCompartmentEditPa
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeploymentSpecAsClassifierNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierFloatingLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierFloatingLabelEditPart.java
index 5e21d0fbb75..fea07d02218 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierFloatingLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierFloatingLabelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class DeploymentSpecAsClassifierFloatingLabelEditPart extends FloatingLab
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierNameEditPart.java
index 5154590cca8..797b9592b44 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsClassifierNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class DeploymentSpecAsClassifierNameEditPart extends PapyrusCompartmentEd
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactEditPart.java
index 7fc59f97a6b..316bd9a1713 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -52,7 +52,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNode
import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -87,6 +86,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -96,7 +96,6 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
@@ -149,9 +148,11 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -174,14 +175,17 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeploymentSpecificationFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure
+ *
* @generated
*/
+ @Override
public DeploymentSpecificationFigure getPrimaryShape() {
return (DeploymentSpecificationFigure) primaryShape;
}
@@ -212,6 +216,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -222,6 +227,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -232,6 +238,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof IBorderItemEditPart) {
return getBorderedFigure().getBorderItemContainer();
@@ -242,6 +249,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof DeploymentSpecAsNestedArtifactFloatingLabelEditPart) {
BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
@@ -255,6 +263,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -262,12 +271,13 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -276,9 +286,12 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -291,6 +304,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -301,6 +315,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -310,6 +325,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -317,6 +333,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -326,6 +343,7 @@ public class DeploymentSpecAsNestedArtifactEditPart extends RoundedCompartmentEd
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeploymentSpecAsNestedArtifactNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactFloatingLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactFloatingLabelEditPart.java
index 1dc52c4440d..e2c89052357 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactFloatingLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactFloatingLabelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape_ACN, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class DeploymentSpecAsNestedArtifactFloatingLabelEditPart extends Floatin
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactNameEditPart.java
index 9ff7a67d3bf..1eb20bed5dd 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsNestedArtifactNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape_ACN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class DeploymentSpecAsNestedArtifactNameEditPart extends PapyrusCompartme
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElEditPart.java
index 683aeb794a4..3e8be0fd411 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -52,7 +52,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNode
import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -87,6 +86,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -96,7 +96,6 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
@@ -149,9 +148,11 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -174,14 +175,17 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeploymentSpecificationFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure
+ *
* @generated
*/
+ @Override
public DeploymentSpecificationFigure getPrimaryShape() {
return (DeploymentSpecificationFigure) primaryShape;
}
@@ -212,6 +216,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -222,6 +227,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -232,6 +238,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof IBorderItemEditPart) {
return getBorderedFigure().getBorderItemContainer();
@@ -242,6 +249,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof DeploymentSpecAsPackageableElFloatingLabelEditPart) {
BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
@@ -255,6 +263,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -262,12 +271,13 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -276,9 +286,12 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -291,6 +304,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -301,6 +315,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -310,6 +325,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -317,6 +333,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -326,6 +343,7 @@ public class DeploymentSpecAsPackageableElEditPart extends RoundedCompartmentEdi
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeploymentSpecAsPackageableElNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElFloatingLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElFloatingLabelEditPart.java
index 6d87704d18e..a5b9154aad6 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElFloatingLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElFloatingLabelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class DeploymentSpecAsPackageableElFloatingLabelEditPart extends Floating
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElNameEditPart.java
index 103d8896555..d2fba40d62c 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecAsPackageableElNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class DeploymentSpecAsPackageableElNameEditPart extends PapyrusCompartmen
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationEditPart.java
index dfeaadfee33..a813ccb2edf 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -51,7 +51,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayE
import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -86,6 +85,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -95,7 +95,6 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
@@ -148,9 +147,11 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
/*
* when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
@@ -173,14 +174,17 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeploymentSpecificationFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeploymentSpecificationFigure
+ *
* @generated
*/
+ @Override
public DeploymentSpecificationFigure getPrimaryShape() {
return (DeploymentSpecificationFigure) primaryShape;
}
@@ -211,6 +215,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -221,6 +226,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -231,6 +237,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof IBorderItemEditPart) {
return getBorderedFigure().getBorderItemContainer();
@@ -241,6 +248,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
if (borderItemEditPart instanceof DeploymentSpecificationFloatingLabelEditPart) {
IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
@@ -253,6 +261,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -260,12 +269,13 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createMainFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -274,9 +284,12 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -289,6 +302,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -299,6 +313,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -308,6 +323,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -315,6 +331,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -324,6 +341,7 @@ public class DeploymentSpecificationEditPart extends RoundedCompartmentEditPart
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeploymentSpecificationNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationFloatingLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationFloatingLabelEditPart.java
index 343981b95be..d35f59e320c 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationFloatingLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationFloatingLabelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -115,12 +115,14 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -142,6 +144,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -152,6 +155,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -164,6 +168,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -238,6 +243,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -245,6 +251,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -290,6 +297,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -305,6 +313,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -324,6 +333,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -356,6 +366,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -366,6 +377,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -373,6 +385,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape, getParserElement(), this, VISUAL_ID);
@@ -435,6 +448,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -524,6 +538,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -593,6 +608,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -608,6 +624,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -615,6 +632,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -630,6 +648,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -643,6 +662,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -665,7 +685,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -684,7 +704,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -697,7 +717,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -707,6 +727,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -722,6 +743,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -735,10 +757,12 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -768,6 +792,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -803,6 +828,7 @@ public class DeploymentSpecificationFloatingLabelEditPart extends FloatingLabelE
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationNameEditPart.java
index 79078f5edbe..d3397da62e7 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentSpecificationNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.DeploymentSpecification_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class DeploymentSpecificationNameEditPart extends PapyrusCompartmentEditP
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
index bb3670d6de4..a8d1f723a7e 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -54,6 +54,7 @@ public class DeviceCompositeCompartmentEditPart extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.DeviceCompositeCompartmentEditPart_title;
}
@@ -61,14 +62,15 @@ public class DeviceCompositeCompartmentEditPart extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -77,6 +79,7 @@ public class DeviceCompositeCompartmentEditPart extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -86,6 +89,7 @@ public class DeviceCompositeCompartmentEditPart extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -94,6 +98,7 @@ public class DeviceCompositeCompartmentEditPart extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -124,6 +129,7 @@ public class DeviceCompositeCompartmentEditPart extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
index 968872bc689..5a2a805badd 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.DeviceCompositeCompartmentEditPartCN_title;
}
@@ -62,6 +63,7 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
@@ -69,8 +71,8 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicyCN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class DeviceCompositeCompartmentEditPartCN extends LinkLFShapeCompartment
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java
index c149447d6cb..bf659edeed3 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -41,7 +41,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -76,6 +75,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -84,7 +84,6 @@ public class DeviceEditPart extends NamedElementEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -124,9 +123,11 @@ public class DeviceEditPart extends NamedElementEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -135,14 +136,17 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeviceFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
+ *
* @generated
*/
+ @Override
public DeviceFigure getPrimaryShape() {
return (DeviceFigure) primaryShape;
}
@@ -159,7 +163,7 @@ public class DeviceEditPart extends NamedElementEditPart {
if (childEditPart instanceof DeviceCompositeCompartmentEditPart) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((DeviceCompositeCompartmentEditPart) childEditPart).getFigure());
return true;
}
@@ -185,6 +189,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -195,6 +200,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -205,6 +211,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof DeviceCompositeCompartmentEditPart) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -215,6 +222,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
return result;
@@ -222,12 +230,13 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -236,9 +245,12 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -251,6 +263,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -261,6 +274,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -270,6 +284,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -277,6 +292,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -286,6 +302,7 @@ public class DeviceEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java
index 3f28e0d94d6..755ecc23812 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -41,7 +41,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -76,6 +75,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -84,7 +84,6 @@ public class DeviceEditPartCN extends NamedElementEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -124,9 +123,11 @@ public class DeviceEditPartCN extends NamedElementEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -135,14 +136,17 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeviceFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
+ *
* @generated
*/
+ @Override
public DeviceFigure getPrimaryShape() {
return (DeviceFigure) primaryShape;
}
@@ -173,6 +177,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -183,6 +188,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -193,6 +199,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -200,6 +207,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
return result;
@@ -207,12 +215,13 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -221,9 +230,12 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -236,6 +248,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -246,6 +259,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -255,6 +269,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -262,6 +277,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -271,6 +287,7 @@ public class DeviceEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java
index 5b746264830..4553ab00706 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Device_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class DeviceNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
index 4c6b75a18ed..987124ccb1d 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Device_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
index d806a469e99..6f81fc284d1 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -54,6 +54,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends LinkLFShap
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ExecutionEnvironmentCompositeCompartmentEditPart_title;
}
@@ -61,14 +62,15 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends LinkLFShap
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -77,6 +79,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends LinkLFShap
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -86,6 +89,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends LinkLFShap
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -94,6 +98,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends LinkLFShap
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -124,6 +129,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends LinkLFShap
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
index 56ce64a3d5c..8956bd53676 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ExecutionEnvironmentCompositeCompartmentEditPartCN_title;
}
@@ -62,6 +63,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
@@ -69,8 +71,8 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends LinkLFSh
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
index 2ebc6cf8253..bd56d32262a 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -41,7 +41,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -76,6 +75,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -84,7 +84,6 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -124,9 +123,11 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -135,14 +136,17 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ExecutionEnvironmentFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
+ *
* @generated
*/
+ @Override
public ExecutionEnvironmentFigure getPrimaryShape() {
return (ExecutionEnvironmentFigure) primaryShape;
}
@@ -159,7 +163,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ExecutionEnvironmentCompositeCompartmentEditPart) childEditPart).getFigure());
return true;
}
@@ -185,6 +189,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -195,6 +200,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -205,6 +211,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -215,6 +222,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
return result;
@@ -222,12 +230,13 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -236,9 +245,12 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -251,6 +263,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -261,6 +274,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -270,6 +284,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -277,6 +292,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -286,6 +302,7 @@ public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
index 7733632f328..15e42d8b642 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -41,7 +41,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -76,6 +75,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -84,7 +84,6 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -124,9 +123,11 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -135,14 +136,17 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ExecutionEnvironmentFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
+ *
* @generated
*/
+ @Override
public ExecutionEnvironmentFigure getPrimaryShape() {
return (ExecutionEnvironmentFigure) primaryShape;
}
@@ -173,6 +177,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -183,6 +188,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -193,6 +199,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -200,6 +207,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
return result;
@@ -207,12 +215,13 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -221,9 +230,12 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -236,6 +248,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -246,6 +259,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -255,6 +269,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -262,6 +277,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -271,6 +287,7 @@ public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
index a9be523e994..21752dc07a6 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.ExecutionEnvironment_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
index 0bdf86c1ce6..1951c50ee17 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.ExecutionEnvironment_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPa
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
index aed9b6c27da..34165fed245 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Generalization_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -660,7 +679,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -673,7 +692,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -683,6 +702,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -698,6 +718,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -711,10 +732,12 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -744,6 +767,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -780,6 +804,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -788,6 +813,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Stereotype";//$NON-NLS-1$
}
@@ -795,6 +821,7 @@ public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPar
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java
index 339d801da4d..f98dfeb6e74 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -20,13 +20,14 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.figure.edge.GeneralizationFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -44,10 +45,11 @@ public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
}
@@ -65,6 +67,7 @@ public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -85,6 +88,7 @@ public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -94,12 +98,13 @@ public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new GeneralizationFigure();
}
@@ -107,6 +112,7 @@ public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
public GeneralizationFigure getPrimaryShape() {
return (GeneralizationFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
index bafec222f95..eba74687fc9 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -23,8 +23,8 @@ import org.eclipse.papyrus.infra.gmfdiag.common.editpart.ConnectionEditPart;
import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class LinkDescriptorEditPart extends ConnectionEditPart implements ITreeBranchEditPart {
/**
@@ -42,6 +42,7 @@ public class LinkDescriptorEditPart extends ConnectionEditPart implements ITreeB
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.COMPONENT_ROLE, new ViewComponentEditPolicy());
@@ -50,12 +51,13 @@ public class LinkDescriptorEditPart extends ConnectionEditPart implements ITreeB
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new SimpleDashedEdgeFigure();
}
@@ -63,6 +65,7 @@ public class LinkDescriptorEditPart extends ConnectionEditPart implements ITreeB
/**
* @generated
*/
+ @Override
public SimpleDashedEdgeFigure getPrimaryShape() {
return (SimpleDashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
index 2c0bb6f47ee..533f2ab2c36 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Manifestation_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Stereotype";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java
index 946243e4fe8..d5b11501fd5 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -20,13 +20,14 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
/**
- * @generated
- */
+ * @generated
+ */
public class ManifestationEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
/**
@@ -44,10 +45,11 @@ public class ManifestationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
}
@@ -69,6 +71,7 @@ public class ManifestationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -92,6 +95,7 @@ public class ManifestationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -101,12 +105,13 @@ public class ManifestationEditPart extends UMLConnectionNodeEditPart implements
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected Connection createConnectionFigure() {
return new DashedEdgeFigure();
}
@@ -114,6 +119,7 @@ public class ManifestationEditPart extends UMLConnectionNodeEditPart implements
/**
* @generated
*/
+ @Override
public DashedEdgeFigure getPrimaryShape() {
return (DashedEdgeFigure) getFigure();
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java
index 3358332539d..3a547b9de9c 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -152,6 +154,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public int getKeyPoint() {
return ConnectionLocator.MIDDLE;
}
@@ -222,6 +225,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -229,6 +233,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -236,6 +241,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -274,6 +280,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -289,6 +296,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -308,6 +316,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -340,6 +349,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -350,6 +360,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -357,6 +368,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Manifestation_Edge, getParserElement(), this, VISUAL_ID);
@@ -419,6 +431,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -508,6 +521,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -577,6 +591,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -592,6 +607,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -599,6 +615,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -614,6 +631,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -627,6 +645,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -649,7 +668,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -668,7 +687,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -681,7 +700,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -691,6 +710,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -706,6 +726,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -719,10 +740,12 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -752,6 +775,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -788,6 +812,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -796,6 +821,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getLabelRole() {
return "Name";//$NON-NLS-1$
}
@@ -803,6 +829,7 @@ public class ManifestationNameEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getIconPathRole() {
return "";//$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java
index 9874327d1f3..930d79fc336 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -73,6 +73,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -118,9 +119,11 @@ public class ModelEditPart extends PackageEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -129,14 +132,17 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new PackageFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
* @generated
*/
+ @Override
public PackageFigure getPrimaryShape() {
return (PackageFigure) primaryShape;
}
@@ -153,7 +159,7 @@ public class ModelEditPart extends PackageEditPart {
if (childEditPart instanceof ModelPackageableElementCompartmentEditPart) {
IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ModelPackageableElementCompartmentEditPart) childEditPart).getFigure());
return true;
}
@@ -179,6 +185,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -189,6 +196,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -199,6 +207,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ModelPackageableElementCompartmentEditPart) {
return getPrimaryShape().getPackageableElementFigure();
@@ -209,6 +218,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -216,12 +226,13 @@ public class ModelEditPart extends PackageEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -230,9 +241,12 @@ public class ModelEditPart extends PackageEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -245,6 +259,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -255,6 +270,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -264,6 +280,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -271,6 +288,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -280,6 +298,7 @@ public class ModelEditPart extends PackageEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ModelNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java
index dddc875bfa9..20f8a054f19 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -73,6 +73,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -118,9 +119,11 @@ public class ModelEditPartCN extends PackageEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -129,14 +132,17 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new PackageFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
* @generated
*/
+ @Override
public PackageFigure getPrimaryShape() {
return (PackageFigure) primaryShape;
}
@@ -153,7 +159,7 @@ public class ModelEditPartCN extends PackageEditPart {
if (childEditPart instanceof ModelPackageableElementCompartmentEditPartCN) {
IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ModelPackageableElementCompartmentEditPartCN) childEditPart).getFigure());
return true;
}
@@ -179,6 +185,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -189,6 +196,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -199,6 +207,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ModelPackageableElementCompartmentEditPartCN) {
return getPrimaryShape().getPackageableElementFigure();
@@ -209,6 +218,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -216,12 +226,13 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -230,9 +241,12 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -245,6 +259,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -255,6 +270,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -264,6 +280,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -271,6 +288,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -280,6 +298,7 @@ public class ModelEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(ModelNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java
index 547621463e5..e3c8b7f759c 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -58,7 +58,6 @@ import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.ILabelEditor
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.IPopupEditorHelper;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.DirectEditorsUtil;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
@@ -69,7 +68,6 @@ import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.edit.policies.DefaultNo
import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
import org.eclipse.swt.SWT;
@@ -115,12 +113,14 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -135,6 +135,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -208,6 +209,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -215,6 +217,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -222,6 +225,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -260,6 +264,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -275,6 +280,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -294,6 +300,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -326,6 +333,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -336,6 +344,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -343,6 +352,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Model_Shape, getParserElement(), this, VISUAL_ID);
@@ -405,6 +415,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -494,6 +505,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -563,6 +575,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -578,6 +591,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -585,6 +599,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -600,6 +615,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -613,6 +629,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -635,7 +652,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -654,7 +671,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -667,7 +684,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -677,6 +694,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -692,6 +710,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -705,10 +724,12 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -738,6 +759,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -746,6 +768,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -754,6 +777,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -793,6 +817,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -806,6 +831,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -822,6 +848,7 @@ public class ModelNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java
index c57a0f461e8..249ac9d457b 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -58,7 +58,6 @@ import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.ILabelEditor
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.IPopupEditorHelper;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.DirectEditorsUtil;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
@@ -69,7 +68,6 @@ import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.edit.policies.DefaultNo
import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
import org.eclipse.swt.SWT;
@@ -115,12 +113,14 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -135,6 +135,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -208,6 +209,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -215,6 +217,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -222,6 +225,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -260,6 +264,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -275,6 +280,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -294,6 +300,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -326,6 +333,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -336,6 +344,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -343,6 +352,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Model_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -405,6 +415,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -494,6 +505,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -563,6 +575,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -578,6 +591,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -585,6 +599,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -600,6 +615,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -613,6 +629,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -635,7 +652,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -654,7 +671,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -667,7 +684,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -677,6 +694,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -692,6 +710,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -705,10 +724,12 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -738,6 +759,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -746,6 +768,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -754,6 +777,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -793,6 +817,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -806,6 +831,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -822,6 +848,7 @@ public class ModelNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java
index 07d08b03589..1ed77d7d235 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class ModelPackageableElementCompartmentEditPart extends LinkLFShapeCompa
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ModelPackageableElementCompartmentEditPart_title;
}
@@ -62,14 +63,15 @@ public class ModelPackageableElementCompartmentEditPart extends LinkLFShapeCompa
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class ModelPackageableElementCompartmentEditPart extends LinkLFShapeCompa
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class ModelPackageableElementCompartmentEditPart extends LinkLFShapeCompa
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class ModelPackageableElementCompartmentEditPart extends LinkLFShapeCompa
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class ModelPackageableElementCompartmentEditPart extends LinkLFShapeCompa
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java
index 6aaf2c4671c..9edca210abb 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class ModelPackageableElementCompartmentEditPartCN extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.ModelPackageableElementCompartmentEditPartCN_title;
}
@@ -62,14 +63,15 @@ public class ModelPackageableElementCompartmentEditPartCN extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicyCN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class ModelPackageableElementCompartmentEditPartCN extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class ModelPackageableElementCompartmentEditPartCN extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class ModelPackageableElementCompartmentEditPartCN extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class ModelPackageableElementCompartmentEditPartCN extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java
index 2bf8633efdb..12b2d691fc8 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -114,12 +114,14 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -141,6 +143,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
@@ -151,6 +154,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IBorderItemLocator getBorderItemLocator() {
IFigure parentFigure = getFigure().getParent();
if (parentFigure != null && parentFigure.getLayoutManager() != null) {
@@ -163,6 +167,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void refreshBounds() {
int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
@@ -237,6 +242,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -244,6 +250,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -289,6 +296,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -304,6 +312,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -323,6 +332,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -355,6 +365,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -365,6 +376,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -372,6 +384,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Dependency_Shape, getParserElement(), this, VISUAL_ID);
@@ -434,6 +447,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -523,6 +537,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -592,6 +607,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -607,6 +623,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -614,6 +631,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -629,6 +647,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -642,6 +661,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -664,7 +684,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -683,7 +703,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -696,7 +716,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -706,6 +726,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -721,6 +742,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -734,10 +756,12 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -767,6 +791,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
Object feature = event.getFeature();
if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
@@ -802,6 +827,7 @@ public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
IFigure label = createFigurePrim();
defaultText = getLabelTextHelper(label);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java
index eacf7d9d14e..ce364c9d534 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Artifact_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java
index 5a2bc40723e..43e7034e0bd 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -40,7 +40,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -75,6 +74,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -84,7 +84,6 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- 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());
@@ -122,9 +121,11 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -133,14 +134,17 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ArtifactFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
* @generated
*/
+ @Override
public ArtifactFigure getPrimaryShape() {
return (ArtifactFigure) primaryShape;
}
@@ -171,6 +175,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -181,6 +186,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -191,6 +197,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -198,6 +205,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
return result;
@@ -205,12 +213,13 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -219,9 +228,12 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -234,6 +246,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -244,6 +257,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -253,6 +267,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -260,6 +275,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -269,6 +285,7 @@ public class NestedArtifactNodeEditPartCN extends RoundedCompartmentEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedArtifactNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java
index cbc7ef5b3bd..38b8e17bfa6 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -40,7 +40,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -75,6 +74,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -83,7 +83,6 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -125,14 +124,17 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new DeviceFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
+ *
* @generated
*/
+ @Override
public DeviceFigure getPrimaryShape() {
return (DeviceFigure) primaryShape;
}
@@ -149,7 +151,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
if (childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((DeviceCompositeCompartmentEditPartCN) childEditPart).getFigure());
return true;
}
@@ -175,6 +177,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -185,6 +188,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -195,6 +199,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof DeviceCompositeCompartmentEditPartCN) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -205,6 +210,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
return result;
@@ -212,12 +218,13 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -226,9 +233,12 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -241,6 +251,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -251,6 +262,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -260,6 +272,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -267,6 +280,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -276,6 +290,7 @@ public class NestedDeviceEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedDeviceNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java
index 9b215a6c75f..962bb1cf317 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Device_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java
index cdca5055d16..c15a9288056 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -40,7 +40,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -75,6 +74,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -83,7 +83,6 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -125,14 +124,17 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new ExecutionEnvironmentFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
+ *
* @generated
*/
+ @Override
public ExecutionEnvironmentFigure getPrimaryShape() {
return (ExecutionEnvironmentFigure) primaryShape;
}
@@ -149,7 +151,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((ExecutionEnvironmentCompositeCompartmentEditPartCN) childEditPart).getFigure());
return true;
}
@@ -175,6 +177,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -185,6 +188,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -195,6 +199,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -205,6 +210,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
return result;
@@ -212,12 +218,13 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -226,9 +233,12 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -241,6 +251,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -251,6 +262,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -260,6 +272,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -267,6 +280,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -276,6 +290,7 @@ public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java
index b0ecd4bb428..380c85bbb20 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.ExecutionEnvironment_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartment
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java
index da382060c7f..72af74ea9af 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -39,7 +39,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -74,6 +73,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -82,7 +82,6 @@ public class NestedNodeEditPartCN extends NodeEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -124,14 +123,17 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new NodeFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
+ *
* @generated
*/
+ @Override
public NodeFigure getPrimaryShape() {
return (NodeFigure) primaryShape;
}
@@ -148,7 +150,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
if (childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((NodeCompositeCompartmentEditPartCN) childEditPart).getFigure());
return true;
}
@@ -174,6 +176,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -184,6 +187,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -194,6 +198,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof NodeCompositeCompartmentEditPartCN) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -204,6 +209,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -211,12 +217,13 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -225,9 +232,12 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -240,6 +250,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -250,6 +261,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -259,6 +271,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -266,6 +279,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -275,6 +289,7 @@ public class NestedNodeEditPartCN extends NodeEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedNodeNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java
index 82b8f2f41f1..1a44e5cbd62 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Node_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
index a381194dee8..faad6974b72 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -54,6 +54,7 @@ public class NodeCompositeCompartmentEditPart extends LinkLFShapeCompartmentEdit
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.NodeCompositeCompartmentEditPart_title;
}
@@ -61,14 +62,15 @@ public class NodeCompositeCompartmentEditPart extends LinkLFShapeCompartmentEdit
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -77,6 +79,7 @@ public class NodeCompositeCompartmentEditPart extends LinkLFShapeCompartmentEdit
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -86,6 +89,7 @@ public class NodeCompositeCompartmentEditPart extends LinkLFShapeCompartmentEdit
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -94,6 +98,7 @@ public class NodeCompositeCompartmentEditPart extends LinkLFShapeCompartmentEdit
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -124,6 +129,7 @@ public class NodeCompositeCompartmentEditPart extends LinkLFShapeCompartmentEdit
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
index ee78f9665d5..79e4fbcd692 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.NodeCompositeCompartmentEditPartCN_title;
}
@@ -62,6 +63,7 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
@@ -69,8 +71,8 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicyCN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class NodeCompositeCompartmentEditPartCN extends LinkLFShapeCompartmentEd
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java
index 54109f9662a..2e5d56543fa 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -40,7 +40,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -75,6 +74,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -83,7 +83,6 @@ public class NodeEditPart extends NamedElementEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -123,9 +122,11 @@ public class NodeEditPart extends NamedElementEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -134,14 +135,17 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new NodeFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
+ *
* @generated
*/
+ @Override
public NodeFigure getPrimaryShape() {
return (NodeFigure) primaryShape;
}
@@ -158,7 +162,7 @@ public class NodeEditPart extends NamedElementEditPart {
if (childEditPart instanceof NodeCompositeCompartmentEditPart) {
IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((NodeCompositeCompartmentEditPart) childEditPart).getFigure());
return true;
}
@@ -184,6 +188,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -194,6 +199,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -204,6 +210,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof NodeCompositeCompartmentEditPart) {
return getPrimaryShape().getCompositeCompartmentFigure();
@@ -214,6 +221,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -221,12 +229,13 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -235,9 +244,12 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -250,6 +262,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -260,6 +273,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -269,6 +283,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -276,6 +291,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -285,6 +301,7 @@ public class NodeEditPart extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java
index f7d1a5c7b14..f61b3055bf4 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -40,7 +40,6 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierCon
import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
import org.eclipse.swt.graphics.Color;
@@ -75,6 +74,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -83,7 +83,6 @@ public class NodeEditPartCN extends NamedElementEditPart {
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
@@ -123,9 +122,11 @@ public class NodeEditPartCN extends NamedElementEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -134,14 +135,17 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new NodeFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
+ *
* @generated
*/
+ @Override
public NodeFigure getPrimaryShape() {
return (NodeFigure) primaryShape;
}
@@ -172,6 +176,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -182,6 +187,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -192,6 +198,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
return getContentPane();
}
@@ -199,6 +206,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -206,12 +214,13 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -220,9 +229,12 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -235,6 +247,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -245,6 +258,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -254,6 +268,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -261,6 +276,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -270,6 +286,7 @@ public class NodeEditPartCN extends NamedElementEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java
index b730b30ab58..5c4ec578b97 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Node_Shape, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class NodeNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java
index 468427c294c..7cc09a3e690 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -111,12 +111,14 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -131,6 +133,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -204,6 +207,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -211,6 +215,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -218,6 +223,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -256,6 +262,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -271,6 +278,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -290,6 +298,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -322,6 +331,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -332,6 +342,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -339,6 +350,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Node_Shape_CCN, getParserElement(), this, VISUAL_ID);
@@ -401,6 +413,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -490,6 +503,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -559,6 +573,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -574,6 +589,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -581,6 +597,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -596,6 +613,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -609,6 +627,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -631,7 +650,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -650,7 +669,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -663,7 +682,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -673,6 +692,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -688,6 +708,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -701,10 +722,12 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -734,6 +757,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -742,6 +766,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -750,6 +775,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -786,6 +812,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -799,6 +826,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -815,6 +843,7 @@ public class NodeNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java
index e6e87628dd2..a74700ec27f 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -72,6 +72,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -117,9 +118,11 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -128,14 +131,17 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new PackageFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
* @generated
*/
+ @Override
public PackageFigure getPrimaryShape() {
return (PackageFigure) primaryShape;
}
@@ -152,7 +158,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
if (childEditPart instanceof PackagePackageableElementCompartmentEditPart) {
IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((PackagePackageableElementCompartmentEditPart) childEditPart).getFigure());
return true;
}
@@ -178,6 +184,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -188,6 +195,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -198,6 +206,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof PackagePackageableElementCompartmentEditPart) {
return getPrimaryShape().getPackageableElementFigure();
@@ -208,6 +217,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -215,12 +225,13 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -229,9 +240,12 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -244,6 +258,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -254,6 +269,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -263,6 +279,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -270,6 +287,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -279,6 +297,7 @@ public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.edit
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(PackageNameEditPart.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java
index 8766946ee9a..5f699565875 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -73,6 +73,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
@@ -118,9 +119,11 @@ public class PackageEditPartCN extends PackageEditPart {
}
/**
- *Papyrus codeGen
- *@generated
- **/
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
@@ -129,14 +132,17 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected IFigure createNodeShape() {
return primaryShape = new PackageFigure();
}
/**
* org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
* @generated
*/
+ @Override
public PackageFigure getPrimaryShape() {
return (PackageFigure) primaryShape;
}
@@ -153,7 +159,7 @@ public class PackageEditPartCN extends PackageEditPart {
if (childEditPart instanceof PackagePackageableElementCompartmentEditPartCN) {
IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
pane.add(((PackagePackageableElementCompartmentEditPartCN) childEditPart).getFigure());
return true;
}
@@ -179,6 +185,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void addChildVisual(EditPart childEditPart, int index) {
if (addFixedChild(childEditPart)) {
return;
@@ -189,6 +196,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void removeChildVisual(EditPart childEditPart) {
if (removeFixedChild(childEditPart)) {
return;
@@ -199,6 +207,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof PackagePackageableElementCompartmentEditPartCN) {
return getPrimaryShape().getPackageableElementFigure();
@@ -209,6 +218,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected NodeFigure createNodePlate() {
RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
return result;
@@ -216,12 +226,13 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* Creates figure for this edit part.
- *
+ *
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
- *
+ *
* @generated
*/
+ @Override
protected NodeFigure createNodeFigure() {
return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
@@ -230,9 +241,12 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
- * @param nodeShape instance of generated figure class
+ *
+ * @param nodeShape
+ * instance of generated figure class
* @generated
*/
+ @Override
protected IFigure setupContentPane(IFigure nodeShape) {
if (nodeShape.getLayoutManager() == null) {
ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
@@ -245,6 +259,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
public IFigure getContentPane() {
if (contentPane != null) {
return contentPane;
@@ -255,6 +270,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setForegroundColor(Color color) {
if (primaryShape != null) {
primaryShape.setForegroundColor(color);
@@ -264,6 +280,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setLineWidth(int width) {
super.setLineWidth(width);
}
@@ -271,6 +288,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
protected void setLineType(int style) {
if (primaryShape instanceof IPapyrusNodeFigure) {
((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
@@ -280,6 +298,7 @@ public class PackageEditPartCN extends PackageEditPart {
/**
* @generated
*/
+ @Override
public EditPart getPrimaryChildEditPart() {
return getChildBySemanticHint(UMLVisualIDRegistry.getType(PackageNameEditPartCN.VISUAL_ID));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java
index f57aa061d62..d28a2464b95 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -58,7 +58,6 @@ import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.ILabelEditor
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.IPopupEditorHelper;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.DirectEditorsUtil;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
@@ -69,7 +68,6 @@ import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.edit.policies.DefaultNo
import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
import org.eclipse.swt.SWT;
@@ -115,12 +113,14 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -135,6 +135,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -208,6 +209,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -215,6 +217,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -222,6 +225,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -260,6 +264,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -275,6 +280,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -294,6 +300,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -326,6 +333,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -336,6 +344,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -343,6 +352,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Package_Shape, getParserElement(), this, VISUAL_ID);
@@ -405,6 +415,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -494,6 +505,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -563,6 +575,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -578,6 +591,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -585,6 +599,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -600,6 +615,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -613,6 +629,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -635,7 +652,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -654,7 +671,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -667,7 +684,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -677,6 +694,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -692,6 +710,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -705,10 +724,12 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -738,6 +759,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -746,6 +768,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -754,6 +777,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -793,6 +817,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -806,6 +831,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -822,6 +848,7 @@ public class PackageNameEditPart extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java
index 21b131b0d90..e89410532af 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -58,7 +58,6 @@ import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.ILabelEditor
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.ui.IPopupEditorHelper;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.DirectEditorsUtil;
import org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
@@ -69,7 +68,6 @@ import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.edit.policies.DefaultNo
import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
import org.eclipse.swt.SWT;
@@ -115,12 +113,14 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* direct edition mode (default, undefined, registered editor, etc.)
+ *
* @generated
*/
protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
/**
* configuration from a registered edit dialog
+ *
* @generated
*/
protected IDirectEditorConfiguration configuration;
@@ -135,6 +135,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
@@ -208,6 +209,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected List<?> getModelChildren() {
return Collections.EMPTY_LIST;
}
@@ -215,6 +217,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
return null;
}
@@ -222,6 +225,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setParser(IParser parser) {
this.parser = parser;
}
@@ -260,6 +264,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
@@ -275,6 +280,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public String getEditText() {
if (getParserElement() == null || getParser() == null) {
return ""; //$NON-NLS-1$
@@ -294,6 +300,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ICellEditorValidator getEditTextValidator() {
return new ICellEditorValidator() {
@@ -326,6 +333,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IContentAssistProcessor getCompletionProcessor() {
if (getParserElement() == null || getParser() == null) {
return null;
@@ -336,6 +344,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public ParserOptions getParserOptions() {
return ParserOptions.NONE;
}
@@ -343,6 +352,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public IParser getParser() {
if (parser == null) {
parser = ParserUtil.getParser(UMLElementTypes.Package_Shape_CN, getParserElement(), this, VISUAL_ID);
@@ -405,6 +415,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void performDirectEditRequest(Request request) {
final Request theRequest = request;
@@ -494,6 +505,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshLabel();
@@ -563,6 +575,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void refreshFont() {
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
NotationPackage.eINSTANCE.getFontStyle());
@@ -578,6 +591,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void setFontColor(Color color) {
getFigure().setForegroundColor(color);
}
@@ -585,6 +599,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addSemanticListeners() {
if (getParser() instanceof ISemanticParser) {
EObject element = resolveSemanticElement();
@@ -600,6 +615,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeSemanticListeners() {
if (parserElements != null) {
for (int i = 0; i < parserElements.size(); i++) {
@@ -613,6 +629,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected AccessibleEditPart getAccessibleEditPart() {
if (accessibleEP == null) {
accessibleEP = new AccessibleGraphicalEditPart() {
@@ -635,7 +652,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Returns the kind of associated editor for direct edition.
- *
+ *
* @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
* @generated
*/
@@ -654,7 +671,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if an extended editor is present.
- *
+ *
* @return <code>true</code> if an extended editor is present.
* @generated
*/
@@ -667,7 +684,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Checks if a default direct edition is available
- *
+ *
* @return <code>true</code> if a default direct edition is available
* @generated
*/
@@ -677,6 +694,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Initializes the extended editor configuration
+ *
* @generated
*/
protected void initExtendedEditorConfiguration() {
@@ -692,6 +710,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* Updates the preference configuration
+ *
* @generated
*/
protected void updateExtendedEditorConfiguration() {
@@ -705,10 +724,12 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
}
/**
- * Performs the direct edit usually used by GMF editors.
- * @param theRequest the direct edit request that starts the direct edit system
- * @generated
- */
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
protected void performDefaultDirectEditorEdit(final Request theRequest) {
// initialize the direct edit manager
try {
@@ -738,6 +759,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void addNotationalListeners() {
super.addNotationalListeners();
addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
@@ -746,6 +768,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void removeNotationalListeners() {
super.removeNotationalListeners();
removeListenerFilter("PrimaryView"); //$NON-NLS-1$
@@ -754,6 +777,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification event) {
refreshLabel();
Object feature = event.getFeature();
@@ -793,6 +817,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
protected IFigure createFigure() {
// Parent should assign one using setLabel() method
return null;
@@ -806,6 +831,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void activate() {
super.activate();
addOwnerElementListeners();
@@ -822,6 +848,7 @@ public class PackageNameEditPartCN extends PapyrusCompartmentEditPart
/**
* @generated
*/
+ @Override
public void deactivate() {
removeOwnerElementListeners();
super.deactivate();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java
index 4db2f0c7c79..1ec8bc5438d 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class PackagePackageableElementCompartmentEditPart extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.PackagePackageableElementCompartmentEditPart_title;
}
@@ -62,14 +63,15 @@ public class PackagePackageableElementCompartmentEditPart extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class PackagePackageableElementCompartmentEditPart extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class PackagePackageableElementCompartmentEditPart extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class PackagePackageableElementCompartmentEditPart extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class PackagePackageableElementCompartmentEditPart extends LinkLFShapeCom
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java
index 93e5462dfa4..433db530c1d 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -55,6 +55,7 @@ public class PackagePackageableElementCompartmentEditPartCN extends LinkLFShapeC
/**
* @generated
*/
+ @Override
public String getCompartmentName() {
return Messages.PackagePackageableElementCompartmentEditPartCN_title;
}
@@ -62,14 +63,15 @@ public class PackagePackageableElementCompartmentEditPartCN extends LinkLFShapeC
/**
* @generated
*/
+ @Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- //in Papyrus diagrams are not strongly synchronised
- //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicyCN());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
@@ -79,6 +81,7 @@ public class PackagePackageableElementCompartmentEditPartCN extends LinkLFShapeC
/**
* @generated
*/
+ @Override
protected void setRatio(Double ratio) {
if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
super.setRatio(ratio);
@@ -88,6 +91,7 @@ public class PackagePackageableElementCompartmentEditPartCN extends LinkLFShapeC
/**
* @generated
*/
+ @Override
public EditPart getTargetEditPart(Request request) {
return super.getTargetEditPart(request);
@@ -96,6 +100,7 @@ public class PackagePackageableElementCompartmentEditPartCN extends LinkLFShapeC
/**
* @generated
*/
+ @Override
protected void handleNotificationEvent(Notification notification) {
Object feature = notification.getFeature();
if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
@@ -126,6 +131,7 @@ public class PackagePackageableElementCompartmentEditPartCN extends LinkLFShapeC
/**
* @generated
*/
+ @Override
protected void refreshVisuals() {
super.refreshVisuals();
refreshBounds();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java
index 17834458174..001009324e9 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -35,6 +35,7 @@ public class UMLEditPartFactory implements EditPartFactory {
/**
* @generated
*/
+ @Override
public EditPart createEditPart(EditPart context, Object model) {
if (model instanceof View) {
View view = (View) model;
@@ -386,6 +387,7 @@ public class UMLEditPartFactory implements EditPartFactory {
/**
* @generated
*/
+ @Override
public void relocate(CellEditor celleditor) {
Text text = (Text) celleditor.getControl();
Rectangle rect = getMultilineEditableFigure().getBounds().getCopy();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java
index 9cfbc316816..e41c02d5ebf 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -73,11 +73,13 @@ public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
/**
* Extended request data key to hold editpart visual id.
+ *
* @generated
*/
public static final String VISUAL_ID_KEY = "visual_id"; //$NON-NLS-1$
/**
* Extended request data key to hold the edge view during a reconnect request.
+ *
* @generated
*/
public static final String GRAPHICAL_RECONNECTED_EDGE = "graphical_edge"; //$NON-NLS-1$
@@ -100,11 +102,12 @@ public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
* It is done in those cases when it's not possible to deduce diagram
* element kind from domain element.
* Add the reoriented view to the request extended data so that the view
- * currently edited can be distinguished from other views of the same element
- * and these latter possibly removed if they become inconsistent after reconnect
- *
+ * currently edited can be distinguished from other views of the same element
+ * and these latter possibly removed if they become inconsistent after reconnect
+ *
* @generated
*/
+ @Override
@SuppressWarnings("unchecked")
public Command getCommand(Request request) {
if (request instanceof ReconnectRequest) {
@@ -120,6 +123,7 @@ public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
/**
* Returns visual id from request parameters.
+ *
* @generated
*/
protected String getVisualID(IEditCommandRequest request) {
@@ -129,6 +133,7 @@ public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
/**
* @generated
*/
+ @Override
protected Command getSemanticCommand(IEditCommandRequest request) {
IEditCommandRequest completedRequest = completeRequest(request);
Command semanticCommand = getSemanticCommandSwitch(completedRequest);
@@ -317,6 +322,7 @@ public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
/**
* Returns editing domain from the host edit part.
+ *
* @generated
*/
protected TransactionalEditingDomain getEditingDomain() {
@@ -325,6 +331,7 @@ public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
/**
* Clean all shortcuts to the host element from the same diagram
+ *
* @generated
*/
protected void addDestroyShortcutsCommand(ICompositeCommand cmd, View view) {
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java
index 3bce4ff6e5f..380d1c0b351 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -54,6 +54,7 @@ public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx impl
/**
* @generated
*/
+ @Override
protected void showPrimarySelection() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setSelected(true);
@@ -67,6 +68,7 @@ public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx impl
/**
* @generated
*/
+ @Override
protected void showSelection() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setSelected(true);
@@ -83,6 +85,7 @@ public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx impl
/**
* @generated
*/
+ @Override
protected void hideSelection() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setSelected(false);
@@ -100,6 +103,7 @@ public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx impl
/**
* @generated
*/
+ @Override
protected void showFocus() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setFocus(true);
@@ -113,6 +117,7 @@ public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx impl
/**
* @generated
*/
+ @Override
protected void hideFocus() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setFocus(false);
@@ -230,6 +235,7 @@ public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx impl
/**
* @generated
*/
+ @Override
protected List<?> createSelectionHandles() {
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setBorder(null);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java
index b2601d95cbc..fe2c85ec58f 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -48,6 +48,7 @@ public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements I
/**
* @generated
*/
+ @Override
protected void showPrimarySelection() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setSelected(true);
@@ -61,6 +62,7 @@ public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements I
/**
* @generated
*/
+ @Override
protected void showSelection() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setSelected(true);
@@ -77,6 +79,7 @@ public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements I
/**
* @generated
*/
+ @Override
protected void hideSelection() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setSelected(false);
@@ -94,6 +97,7 @@ public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements I
/**
* @generated
*/
+ @Override
protected void showFocus() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setFocus(true);
@@ -107,6 +111,7 @@ public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements I
/**
* @generated
*/
+ @Override
protected void hideFocus() {
if (getHostFigure() instanceof WrappingLabel) {
((WrappingLabel) getHostFigure()).setFocus(false);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java
index dbcb00f1c27..3fb27060a68 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java
@@ -1 +1 @@
-//Since GMFT 3.1 we don't generate class AbstractParser into every diagram, instead extend org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.parsers.AbstractAttributeParser.
+// Since GMFT 3.1 we don't generate class AbstractParser into every diagram, instead extend org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.parsers.AbstractAttributeParser.
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java
index fe61faca3cb..132c87a7664 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -102,6 +102,7 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
*/
+ @Override
public void setViewPattern(String viewPattern) {
super.setViewPattern(viewPattern);
viewProcessor = null;
@@ -110,6 +111,7 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
*/
+ @Override
public void setEditorPattern(String editorPattern) {
super.setEditorPattern(editorPattern);
editorProcessor = null;
@@ -157,6 +159,7 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
*/
+ @Override
public void setEditPattern(String editPattern) {
super.setEditPattern(editPattern);
editProcessor = null;
@@ -175,14 +178,16 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
*/
+ @Override
public String getEditString(IAdaptable adapter, int flags) {
- EObject element = (EObject) adapter.getAdapter(EObject.class);
+ EObject element = adapter.getAdapter(EObject.class);
return getEditorProcessor().format(getEditableValues(element), new StringBuffer(), new FieldPosition(0)).toString();
}
/**
* @generated
*/
+ @Override
public IParserEditStatus isValidEditString(IAdaptable adapter, String editString) {
ParsePosition pos = new ParsePosition(0);
Object[] values = getEditProcessor().parse(editString, pos);
@@ -200,6 +205,7 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
*/
+ @Override
public ICommand getParseCommand(IAdaptable adapter, String newString, int flags) {
Object[] values = getEditProcessor().parse(newString, new ParsePosition(0));
return getParseCommand(adapter, values, flags);
@@ -208,14 +214,15 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
*/
+ @Override
public String getPrintString(IAdaptable adapter, int flags) {
- EObject element = (EObject) adapter.getAdapter(EObject.class);
+ EObject element = adapter.getAdapter(EObject.class);
return getViewProcessor().format(getValues(element), new StringBuffer(), new FieldPosition(0)).toString();
}
/**
* @generated
- * {@inheritDoc}
+ * {@inheritDoc}
* @see AbstractFeatureParser#getModificationCommand(EObject, EStructuralFeature, java.lang.Object)
*/
@Override
@@ -238,7 +245,7 @@ public class MessageFormatParser extends AbstractElementTypeBasedAttributeParser
/**
* @generated
- * {@inheritDoc}
+ * {@inheritDoc}
* @see AbstractAttributeParser#getValue(EObject, EStructuralFeature)
*/
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java
index 518469c4599..f934945a7d8 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -24,6 +24,7 @@ public class LoadResourceAction extends DefaultLoadResourceAction {
/**
* @generated
*/
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
return super.execute(event);
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java
index 5f254fdaa06..53eab41e8c1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java
@@ -256,181 +256,6 @@ public class Messages extends NLS {
/**
* @generated
*/
- public static String NodesGroup_title;
-
- /**
- * @generated
- */
- public static String NodesGroup_desc;
-
- /**
- * @generated
- */
- public static String LinksGroup_title;
-
- /**
- * @generated
- */
- public static String LinksGroup_desc;
-
- /**
- * @generated
- */
- public static String ModelCreationTool_title;
-
- /**
- * @generated
- */
- public static String ModelCreationTool_desc;
-
- /**
- * @generated
- */
- public static String PackageCreationTool_title;
-
- /**
- * @generated
- */
- public static String PackageCreationTool_desc;
-
- /**
- * @generated
- */
- public static String CommunicationPath1CreationTool_title;
-
- /**
- * @generated
- */
- public static String NodeCreationTool_title;
-
- /**
- * @generated
- */
- public static String NodeCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DeviceCreationTool_title;
-
- /**
- * @generated
- */
- public static String DeviceCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DeploymentSpecification5CreationTool_title;
-
- /**
- * @generated
- */
- public static String DeploymentSpecification5CreationTool_desc;
-
- /**
- * @generated
- */
- public static String ExecutionEnvironmentCreationTool_title;
-
- /**
- * @generated
- */
- public static String ExecutionEnvironmentCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ArtifactCreationTool_title;
-
- /**
- * @generated
- */
- public static String ArtifactCreationTool_desc;
-
- /**
- * @generated
- */
- public static String CommentCreationTool_title;
-
- /**
- * @generated
- */
- public static String CommentCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ConstraintCreationTool_title;
-
- /**
- * @generated
- */
- public static String ConstraintCreationTool_desc;
-
- /**
- * @generated
- */
- public static String LinkCreationTool_title;
-
- /**
- * @generated
- */
- public static String LinkCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DependencyCreationTool_title;
-
- /**
- * @generated
- */
- public static String DependencyCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DependencyBranchCreationTool_title;
-
- /**
- * @generated
- */
- public static String DependencyBranchCreationTool_desc;
-
- /**
- * @generated
- */
- public static String GeneralizationCreationTool_title;
-
- /**
- * @generated
- */
- public static String GeneralizationCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DeploymentCreationTool_title;
-
- /**
- * @generated
- */
- public static String DeploymentCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ManifestationCreationTool_title;
-
- /**
- * @generated
- */
- public static String ManifestationCreationTool_desc;
-
- /**
- * @generated
- */
public static String ModelPackageableElementCompartmentEditPart_title;
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java
index 961a810846b..648bc431ba3 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -17,6 +17,7 @@ import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.part.DefaultModelElemen
/**
* Wizard page that allows to select element from model.
+ *
* @generated
*/
public class ModelElementSelectionPage extends DefaultModelElementSelectionPage {
@@ -30,8 +31,10 @@ public class ModelElementSelectionPage extends DefaultModelElementSelectionPage
/**
* Override to provide custom model element description.
+ *
* @generated
*/
+ @Override
protected String getSelectionTitle() {
return Messages.ModelElementSelectionPageMessage;
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java
index 3894f4b2d54..2aab5fc904b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java
@@ -24,7 +24,6 @@ import org.eclipse.gef.GraphicalViewer;
import org.eclipse.gef.KeyHandler;
import org.eclipse.gef.Tool;
import org.eclipse.gef.commands.CommandStackListener;
-import org.eclipse.gef.palette.PaletteRoot;
import org.eclipse.gef.ui.palette.PaletteViewer;
import org.eclipse.gef.ui.palette.PaletteViewerProvider;
import org.eclipse.gmf.runtime.common.core.service.IProviderChangeListener;
@@ -130,22 +129,6 @@ public class UMLDiagramEditor extends UmlGmfDiagramEditor implements IProviderCh
* @generated
*/
@Override
- protected PaletteRoot createPaletteRoot(PaletteRoot existingPaletteRoot) {
- PaletteRoot paletteRoot;
- if (existingPaletteRoot == null) {
- paletteRoot = PapyrusPaletteService.getInstance().createPalette(this, getDefaultPaletteContent());
- } else {
- PapyrusPaletteService.getInstance().updatePalette(existingPaletteRoot, this, getDefaultPaletteContent());
- paletteRoot = existingPaletteRoot;
- }
- applyCustomizationsToPalette(paletteRoot);
- return paletteRoot;
- }
-
- /**
- * @generated
- */
- @Override
protected PreferencesHint getPreferencesHint() {
return UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT;
}
@@ -407,7 +390,7 @@ public class UMLDiagramEditor extends UmlGmfDiagramEditor implements IProviderCh
* whenever a key is released, and the Tool is in the proper state. Override
* to support pressing the enter key to create a shape or connection
* (between two selected shapes)
- *
+ *
* @param event
* the KeyEvent
* @return <code>true</code> if KeyEvent was handled in some way
@@ -457,7 +440,7 @@ public class UMLDiagramEditor extends UmlGmfDiagramEditor implements IProviderCh
/**
* Override to support double-clicking a palette tool entry to create a
* shape or connection (between two selected shapes).
- *
+ *
* @see MouseListener#mouseDoubleClick(MouseEvent)
*/
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java
index ed20e8a90b2..f7078d30d5a 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -75,7 +75,7 @@ public class UMLDiagramEditorUtil {
* @generated
*/
public static Map<?, ?> getSaveOptions() {
- HashMap<String, Object> saveOptions = new HashMap<String, Object>();
+ HashMap<String, Object> saveOptions = new HashMap<>();
saveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8"); //$NON-NLS-1$
saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
return saveOptions;
@@ -118,7 +118,7 @@ public class UMLDiagramEditorUtil {
/**
* Runs the wizard in a dialog.
- *
+ *
* @generated
*/
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
@@ -136,6 +136,7 @@ public class UMLDiagramEditorUtil {
/**
* This method should be called within a workspace modify operation since it creates resources.
+ *
* @generated
*/
public static Resource createDiagram(URI diagramURI, URI modelURI, IProgressMonitor progressMonitor) {
@@ -180,21 +181,23 @@ public class UMLDiagramEditorUtil {
}
/**
- * Create a new instance of domain element associated with canvas.
- * <!-- begin-user-doc -->
+ * Create a new instance of domain element associated with canvas.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ *
+ * @generated
+ */
private static Package createInitialModel() {
return UMLFactory.eINSTANCE.createPackage();
}
/**
- * Store model element in the resource.
- * <!-- begin-user-doc -->
+ * Store model element in the resource.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ *
+ * @generated
+ */
private static void attachModelToResource(Package model, Resource resource) {
resource.getContents().add(model);
}
@@ -271,7 +274,7 @@ public class UMLDiagramEditorUtil {
}
View view = null;
- LinkedList<EditPart> editPartHolder = new LinkedList<EditPart>();
+ LinkedList<EditPart> editPartHolder = new LinkedList<>();
if (hasStructuralURI && !lazyElement2ViewMap.getElement2ViewMap().isEmpty()) {
view = lazyElement2ViewMap.getElement2ViewMap().get(targetElement);
} else if (findElementsInDiagramByID(diagramEditPart, targetElement, editPartHolder) > 0) {
@@ -284,6 +287,7 @@ public class UMLDiagramEditorUtil {
/**
* XXX This is quite suspicious code (especially editPartTmpHolder) and likely to be removed soon
+ *
* @generated
*/
public static class LazyElement2ViewMap {
@@ -315,7 +319,7 @@ public class UMLDiagramEditorUtil {
*/
public final Map<EObject, View> getElement2ViewMap() {
if (element2ViewMap == null) {
- element2ViewMap = new HashMap<EObject, View>();
+ element2ViewMap = new HashMap<>();
// map possible notation elements to itself as these can't be found by view.getElement()
for (EObject element : elementSet) {
if (element instanceof View) {
@@ -358,6 +362,6 @@ public class UMLDiagramEditorUtil {
}
return complete;
}
- } //LazyElement2ViewMap
+ } // LazyElement2ViewMap
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java
index 81c7bbecff8..0f85533f2ed 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java
@@ -110,7 +110,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
* @generated
*/
protected UMLDiagramUpdater() {
- //to prevent instantiation allowing the override
+ // to prevent instantiation allowing the override
}
/**
@@ -162,7 +162,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Package modelElement = (Package) view.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getPackagedElements()
.iterator(); it.hasNext();) {
PackageableElement childElement = (PackageableElement) it.next();
@@ -242,7 +242,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Model modelElement = (Model) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getPackagedElements()
.iterator(); it.hasNext();) {
PackageableElement childElement = (PackageableElement) it.next();
@@ -309,7 +309,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Package modelElement = (Package) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getPackagedElements()
.iterator(); it.hasNext();) {
PackageableElement childElement = (PackageableElement) it.next();
@@ -376,7 +376,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Device modelElement = (Device) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedNodes()
.iterator(); it.hasNext();) {
Node childElement = (Node) it.next();
@@ -418,7 +418,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
ExecutionEnvironment modelElement = (ExecutionEnvironment) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedNodes()
.iterator(); it.hasNext();) {
Node childElement = (Node) it.next();
@@ -456,7 +456,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Node modelElement = (Node) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedNodes()
.iterator(); it.hasNext();) {
Node childElement = (Node) it.next();
@@ -502,7 +502,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Artifact modelElement = (Artifact) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedArtifacts()
.iterator(); it.hasNext();) {
Artifact childElement = (Artifact) it.next();
@@ -531,7 +531,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Model modelElement = (Model) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getPackagedElements()
.iterator(); it.hasNext();) {
PackageableElement childElement = (PackageableElement) it.next();
@@ -598,7 +598,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Package modelElement = (Package) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getPackagedElements()
.iterator(); it.hasNext();) {
PackageableElement childElement = (PackageableElement) it.next();
@@ -661,7 +661,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Device modelElement = (Device) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedNodes()
.iterator(); it.hasNext();) {
Node childElement = (Node) it.next();
@@ -703,7 +703,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
ExecutionEnvironment modelElement = (ExecutionEnvironment) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedClassifiers()
.iterator(); it.hasNext();) {
Classifier childElement = (Classifier) it.next();
@@ -741,7 +741,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Node modelElement = (Node) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedNodes()
.iterator(); it.hasNext();) {
Node childElement = (Node) it.next();
@@ -787,7 +787,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Artifact modelElement = (Artifact) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedArtifacts()
.iterator(); it.hasNext();) {
Artifact childElement = (Artifact) it.next();
@@ -816,7 +816,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
return Collections.emptyList();
}
Artifact modelElement = (Artifact) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<>();
for (Iterator<?> it = modelElement.getNestedArtifacts()
.iterator(); it.hasNext();) {
Artifact childElement = (Artifact) it.next();
@@ -1077,7 +1077,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getPackage_DeploymentDiagram_ContainedLinks(View view) {
Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Dependency_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Dependency_BranchEdge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_CommunicationPath_Edge(modelElement));
@@ -1096,7 +1096,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getModel_Shape_ContainedLinks(View view) {
Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Dependency_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Dependency_BranchEdge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_CommunicationPath_Edge(modelElement));
@@ -1108,7 +1108,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getPackage_Shape_ContainedLinks(View view) {
Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Dependency_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Dependency_BranchEdge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_CommunicationPath_Edge(modelElement));
@@ -1120,7 +1120,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getConstraint_Shape_ContainedLinks(View view) {
Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement));
return result;
}
@@ -1130,7 +1130,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getComment_Shape_ContainedLinks(View view) {
Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement));
return result;
}
@@ -1140,7 +1140,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_ContainedLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1151,7 +1151,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDevice_Shape_ContainedLinks(View view) {
Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1162,7 +1162,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_ContainedLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1173,7 +1173,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNode_Shape_ContainedLinks(View view) {
Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1191,7 +1191,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_ContainedLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1202,7 +1202,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getModel_Shape_CN_ContainedLinks(View view) {
Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Dependency_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Dependency_BranchEdge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_CommunicationPath_Edge(modelElement));
@@ -1214,7 +1214,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getPackage_Shape_CN_ContainedLinks(View view) {
Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Dependency_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Dependency_BranchEdge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_CommunicationPath_Edge(modelElement));
@@ -1226,7 +1226,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDevice_Shape_CCN_ContainedLinks(View view) {
Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1237,7 +1237,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDevice_Shape_CN_ContainedLinks(View view) {
Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1248,7 +1248,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_CCN_ContainedLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1259,7 +1259,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_CN_ContainedLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1270,7 +1270,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNode_Shape_CCN_ContainedLinks(View view) {
Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1281,7 +1281,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNode_Shape_CN_ContainedLinks(View view) {
Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1292,7 +1292,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_CCN_ContainedLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1303,7 +1303,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_ACN_ContainedLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1314,7 +1314,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_CN_ContainedLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1325,7 +1325,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getComment_Shape_CN_ContainedLinks(View view) {
Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement));
return result;
}
@@ -1335,7 +1335,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getConstraint_Shape_CN_ContainedLinks(View view) {
Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement));
return result;
}
@@ -1345,7 +1345,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_CCN_ContainedLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1356,7 +1356,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_CN_ContainedLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1367,7 +1367,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_ACN_ContainedLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
@@ -1413,7 +1413,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getCommunicationPath_Edge_ContainedLinks(View view) {
CommunicationPath modelElement = (CommunicationPath) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getContainedTypeModelFacetLinks_Generalization_Edge(modelElement));
return result;
}
@@ -1424,7 +1424,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDependency_Shape_IncomingLinks(View view) {
Dependency modelElement = (Dependency) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1440,7 +1440,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getModel_Shape_IncomingLinks(View view) {
Model modelElement = (Model) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1456,7 +1456,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getPackage_Shape_IncomingLinks(View view) {
Package modelElement = (Package) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1472,7 +1472,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getConstraint_Shape_IncomingLinks(View view) {
Constraint modelElement = (Constraint) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1488,7 +1488,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getComment_Shape_IncomingLinks(View view) {
Comment modelElement = (Comment) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
return result;
@@ -1500,7 +1500,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_IncomingLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1518,7 +1518,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDevice_Shape_IncomingLinks(View view) {
Device modelElement = (Device) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1536,7 +1536,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getArtifact_Shape_IncomingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1554,7 +1554,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getNode_Shape_IncomingLinks(View view) {
Node modelElement = (Node) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1572,7 +1572,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getNamedElement_DefaultShape_IncomingLinks(View view) {
NamedElement modelElement = (NamedElement) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1588,7 +1588,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_IncomingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1606,7 +1606,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getModel_Shape_CN_IncomingLinks(View view) {
Model modelElement = (Model) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1622,7 +1622,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getPackage_Shape_CN_IncomingLinks(View view) {
Package modelElement = (Package) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1638,7 +1638,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDevice_Shape_CCN_IncomingLinks(View view) {
Device modelElement = (Device) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1656,7 +1656,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDevice_Shape_CN_IncomingLinks(View view) {
Device modelElement = (Device) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1674,7 +1674,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_CCN_IncomingLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1692,7 +1692,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_CN_IncomingLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1710,7 +1710,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getNode_Shape_CCN_IncomingLinks(View view) {
Node modelElement = (Node) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1728,7 +1728,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getNode_Shape_CN_IncomingLinks(View view) {
Node modelElement = (Node) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1746,7 +1746,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getArtifact_Shape_CCN_IncomingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1764,7 +1764,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getArtifact_Shape_ACN_IncomingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1782,7 +1782,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getArtifact_Shape_CN_IncomingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1800,7 +1800,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getComment_Shape_CN_IncomingLinks(View view) {
Comment modelElement = (Comment) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
return result;
@@ -1812,7 +1812,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getConstraint_Shape_CN_IncomingLinks(View view) {
Constraint modelElement = (Constraint) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1828,7 +1828,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_CCN_IncomingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1846,7 +1846,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_CN_IncomingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1864,7 +1864,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_ACN_IncomingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1882,7 +1882,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDeployment_Edge_IncomingLinks(View view) {
Deployment modelElement = (Deployment) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1898,7 +1898,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getManifestation_Edge_IncomingLinks(View view) {
Manifestation modelElement = (Manifestation) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1914,7 +1914,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getGeneralization_Edge_IncomingLinks(View view) {
Generalization modelElement = (Generalization) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
return result;
@@ -1926,7 +1926,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDependency_Edge_IncomingLinks(View view) {
Dependency modelElement = (Dependency) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1942,7 +1942,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getDependency_BranchEdge_IncomingLinks(View view) {
Dependency modelElement = (Dependency) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1958,7 +1958,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
public List<UMLLinkDescriptor> getCommunicationPath_Edge_IncomingLinks(View view) {
CommunicationPath modelElement = (CommunicationPath) view.getElement();
CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement, crossReferencer));
result.addAll(getIncomingTypeModelFacetLinks_Deployment_Edge(modelElement, crossReferencer));
@@ -1975,7 +1975,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDependency_Shape_OutgoingLinks(View view) {
Dependency modelElement = (Dependency) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -1988,7 +1988,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getModel_Shape_OutgoingLinks(View view) {
Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2001,7 +2001,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getPackage_Shape_OutgoingLinks(View view) {
Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2014,7 +2014,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getConstraint_Shape_OutgoingLinks(View view) {
Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
@@ -2028,7 +2028,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getComment_Shape_OutgoingLinks(View view) {
Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement));
return result;
}
@@ -2038,7 +2038,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_OutgoingLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2053,7 +2053,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDevice_Shape_OutgoingLinks(View view) {
Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2068,7 +2068,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_OutgoingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2083,7 +2083,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNode_Shape_OutgoingLinks(View view) {
Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2098,7 +2098,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNamedElement_DefaultShape_OutgoingLinks(View view) {
NamedElement modelElement = (NamedElement) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2111,7 +2111,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_OutgoingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2126,7 +2126,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getModel_Shape_CN_OutgoingLinks(View view) {
Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2139,7 +2139,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getPackage_Shape_CN_OutgoingLinks(View view) {
Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2152,7 +2152,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDevice_Shape_CCN_OutgoingLinks(View view) {
Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2167,7 +2167,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDevice_Shape_CN_OutgoingLinks(View view) {
Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2182,7 +2182,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_CCN_OutgoingLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2197,7 +2197,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getExecutionEnvironment_Shape_CN_OutgoingLinks(View view) {
ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2212,7 +2212,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNode_Shape_CCN_OutgoingLinks(View view) {
Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2227,7 +2227,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getNode_Shape_CN_OutgoingLinks(View view) {
Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2242,7 +2242,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_CCN_OutgoingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2257,7 +2257,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_ACN_OutgoingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2272,7 +2272,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getArtifact_Shape_CN_OutgoingLinks(View view) {
Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2287,7 +2287,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getComment_Shape_CN_OutgoingLinks(View view) {
Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(modelElement));
return result;
}
@@ -2297,7 +2297,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getConstraint_Shape_CN_OutgoingLinks(View view) {
Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
@@ -2311,7 +2311,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_CCN_OutgoingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2326,7 +2326,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_CN_OutgoingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2341,7 +2341,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeploymentSpecification_Shape_ACN_OutgoingLinks(View view) {
DeploymentSpecification modelElement = (DeploymentSpecification) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2356,7 +2356,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDeployment_Edge_OutgoingLinks(View view) {
Deployment modelElement = (Deployment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2369,7 +2369,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getManifestation_Edge_OutgoingLinks(View view) {
Manifestation modelElement = (Manifestation) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2389,7 +2389,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDependency_Edge_OutgoingLinks(View view) {
Dependency modelElement = (Dependency) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2402,7 +2402,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getDependency_BranchEdge_OutgoingLinks(View view) {
Dependency modelElement = (Dependency) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Dependency_Edge(modelElement));
@@ -2415,7 +2415,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
public List<UMLLinkDescriptor> getCommunicationPath_Edge_OutgoingLinks(View view) {
CommunicationPath modelElement = (CommunicationPath) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
result.addAll(getOutgoingTypeModelFacetLinks_Deployment_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_Edge(modelElement));
result.addAll(getOutgoingTypeModelFacetLinks_Generalization_Edge(modelElement));
@@ -2430,7 +2430,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Deployment_Edge(
DeploymentTarget container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getDeployments()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2462,7 +2462,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
* @generated
*/
protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Manifestation_Edge(Artifact container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getManifestations()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2494,7 +2494,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
* @generated
*/
protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Generalization_Edge(Classifier container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getGeneralizations()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2516,7 +2516,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
* @generated
*/
protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_Edge(Package container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getPackagedElements()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2548,7 +2548,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
* @generated
*/
protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_BranchEdge(Package container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getPackagedElements()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2580,7 +2580,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
* @generated
*/
protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_CommunicationPath_Edge(Package container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getPackagedElements()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2613,7 +2613,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(
Element target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getComment_AnnotatedElement()) {
@@ -2628,7 +2628,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(
Element target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getConstraint_ConstrainedElement()) {
@@ -2643,7 +2643,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Deployment_Edge(NamedElement target,
CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Deployment) {
@@ -2669,7 +2669,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Manifestation_Edge(NamedElement target,
CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Manifestation) {
@@ -2695,7 +2695,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Generalization_Edge(Classifier target,
CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getGeneralization_General() || false == setting.getEObject() instanceof Generalization) {
@@ -2716,7 +2716,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_Edge(NamedElement target,
CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
@@ -2742,7 +2742,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_BranchEdge(NamedElement target,
CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
@@ -2768,7 +2768,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_CommunicationPath_Edge(Type target,
CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
for (EStructuralFeature.Setting setting : settings) {
if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getAssociation_EndType() || false == setting.getEObject() instanceof CommunicationPath) {
@@ -2794,7 +2794,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElementEdge(
Comment source) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> destinations = source.getAnnotatedElements()
.iterator(); destinations.hasNext();) {
Element destination = (Element) destinations.next();
@@ -2808,7 +2808,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
*/
protected Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElementEdge(
Constraint source) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> destinations = source.getConstrainedElements()
.iterator(); destinations.hasNext();) {
Element destination = (Element) destinations.next();
@@ -2833,7 +2833,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
if (container == null) {
return Collections.emptyList();
}
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getDeployments()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2880,7 +2880,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
if (container == null) {
return Collections.emptyList();
}
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getManifestations()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2927,7 +2927,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
if (container == null) {
return Collections.emptyList();
}
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getGeneralizations()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -2964,7 +2964,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
if (container == null) {
return Collections.emptyList();
}
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getPackagedElements()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -3011,7 +3011,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
if (container == null) {
return Collections.emptyList();
}
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getPackagedElements()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
@@ -3058,7 +3058,7 @@ public class UMLDiagramUpdater implements DiagramUpdater {
if (container == null) {
return Collections.emptyList();
}
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<>();
for (Iterator<?> links = container.getPackagedElements()
.iterator(); links.hasNext();) {
EObject linkObject = (EObject) links.next();
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java
index 1ced4b3996e..0f976aec937 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java
@@ -81,7 +81,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
NLS.bind(
Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
null));
}
IEditorInput editorInput = (IEditorInput) element;
@@ -102,7 +102,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
NLS.bind(
Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
null));
}
IDocument document = createEmptyDocument();
@@ -219,7 +219,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
try {
@SuppressWarnings({ "rawtypes", "unchecked" })
Map<?, ?> options = new HashMap(GMFResourceFactory.getDefaultLoadOptions());
- // @see 171060
+ // @see 171060
// options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
resource.load(options);
} catch (IOException e) {
@@ -258,7 +258,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
NLS.bind(
Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
null));
}
}
@@ -317,7 +317,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
protected void doValidateState(Object element, Object computationContext) throws CoreException {
ResourceSetInfo info = getResourceSetInfo(element);
if (info != null) {
- LinkedList<IFile> files2Validate = new LinkedList<IFile>();
+ LinkedList<IFile> files2Validate = new LinkedList<>();
for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
Resource nextResource = it.next();
IFile file = WorkspaceSynchronizer.getFile(nextResource);
@@ -428,7 +428,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
protected ISchedulingRule getResetRule(Object element) {
ResourceSetInfo info = getResourceSetInfo(element);
if (info != null) {
- LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ LinkedList<ISchedulingRule> rules = new LinkedList<>();
for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
Resource nextResource = it.next();
IFile file = WorkspaceSynchronizer.getFile(nextResource);
@@ -448,7 +448,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
protected ISchedulingRule getSaveRule(Object element) {
ResourceSetInfo info = getResourceSetInfo(element);
if (info != null) {
- LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ LinkedList<ISchedulingRule> rules = new LinkedList<>();
for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
Resource nextResource = it.next();
IFile file = WorkspaceSynchronizer.getFile(nextResource);
@@ -468,7 +468,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
protected ISchedulingRule getSynchronizeRule(Object element) {
ResourceSetInfo info = getResourceSetInfo(element);
if (info != null) {
- LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ LinkedList<ISchedulingRule> rules = new LinkedList<>();
for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
Resource nextResource = it.next();
IFile file = WorkspaceSynchronizer.getFile(nextResource);
@@ -488,7 +488,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
protected ISchedulingRule getValidateStateRule(Object element) {
ResourceSetInfo info = getResourceSetInfo(element);
if (info != null) {
- LinkedList<ISchedulingRule> files = new LinkedList<ISchedulingRule>();
+ LinkedList<ISchedulingRule> files = new LinkedList<>();
for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
Resource nextResource = it.next();
IFile file = WorkspaceSynchronizer.getFile(nextResource);
@@ -556,7 +556,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
info.stopResourceListening();
fireElementStateChanging(element);
try {
- monitor.beginTask(Messages.UMLDocumentProvider_SaveDiagramTask, info.getResourceSet().getResources().size() + 1); //"Saving diagram"
+ monitor.beginTask(Messages.UMLDocumentProvider_SaveDiagramTask, info.getResourceSet().getResources().size() + 1); // "Saving diagram"
for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
Resource nextResource = it.next();
monitor.setTaskName(NLS.bind(
@@ -594,7 +594,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
NLS.bind(
Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
null));
}
if (false == document instanceof IDiagramDocument) {
@@ -714,7 +714,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
/**
* @generated
*/
- private LinkedList<Resource> myUnSynchronizedResources = new LinkedList<Resource>();
+ private LinkedList<Resource> myUnSynchronizedResources = new LinkedList<>();
/**
* @generated
@@ -790,7 +790,7 @@ public class UMLDocumentProvider extends AbstractDocumentProvider implements IDi
* @generated
*/
public Iterator<Resource> getLoadedResourcesIterator() {
- return new ArrayList<Resource>(getResourceSet().getResources()).iterator();
+ return new ArrayList<>(getResourceSet().getResources()).iterator();
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java
index b4b35933e1d..bcb4f75075e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java
@@ -111,7 +111,7 @@ public class UMLNewDiagramFileWizard extends Wizard {
*/
@Override
public boolean performFinish() {
- LinkedList<IFile> affectedFiles = new LinkedList<IFile>();
+ LinkedList<IFile> affectedFiles = new LinkedList<>();
IFile diagramFile = myFileCreationPage.createNewFile();
UMLDiagramEditorUtil.setCharset(diagramFile);
affectedFiles.add(diagramFile);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java
index 6fb9c12f344..b9f34950f85 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java
@@ -1060,7 +1060,7 @@ public class UMLVisualIDRegistry {
*/
public static boolean checkNodeVisualID(View containerView, EObject domainElement, String candidate) {
if (candidate == null) {
- //unrecognized id is always bad
+ // unrecognized id is always bad
return false;
}
String basic = getNodeVisualID(containerView, domainElement);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java
index bab078d2136..857ccdf0b37 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java
@@ -210,7 +210,7 @@ public class ValidateAction extends Action {
return;
}
final Diagnostic rootStatus = emfValidationStatus;
- List<Diagnostic> allDiagnostics = new ArrayList<Diagnostic>();
+ List<Diagnostic> allDiagnostics = new ArrayList<>();
UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new UMLDiagramEditorUtil.LazyElement2ViewMap(
diagramEditPart.getDiagramView(),
collectTargetElements(rootStatus, new HashSet<EObject>(), allDiagnostics));
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java
index b45170612b5..b034cc3a897 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java
@@ -15,6 +15,10 @@
package org.eclipse.papyrus.uml.diagram.deployment.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.DiagramsPreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
@@ -29,10 +33,10 @@ public class DiagramPreferenceInitializer extends AbstractPreferenceInitializer
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = getPreferenceStore();
- DiagramGeneralPreferencePage.initDefaults(store);
- DiagramAppearancePreferencePage.initDefaults(store);
- DiagramConnectionsPreferencePage.initDefaults(store);
- DiagramPrintingPreferencePage.initDefaults(store);
+ DiagramsPreferencePage.initDefaults(store);
+ AppearancePreferencePage.initDefaults(store);
+ ConnectionsPreferencePage.initDefaults(store);
+ PrintingPreferencePage.initDefaults(store);
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
index a2da18c1d6a..da5eac83f85 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -271,13 +271,13 @@ public class UMLElementTypes {
/**
* Returns 'type' of the ecore object associated with the hint.
- *
+ *
* @generated
*/
public static synchronized ENamedElement getElement(IAdaptable hint) {
Object type = hint.getAdapter(IElementType.class);
if (elements == null) {
- elements = new IdentityHashMap<IElementType, ENamedElement>();
+ elements = new IdentityHashMap<>();
elements.put(Package_DeploymentDiagram, UMLPackage.eINSTANCE.getPackage());
@@ -399,7 +399,7 @@ public class UMLElementTypes {
*/
public static synchronized boolean isKnownElementType(IElementType elementType) {
if (KNOWN_ELEMENT_TYPES == null) {
- KNOWN_ELEMENT_TYPES = new HashSet<IElementType>();
+ KNOWN_ELEMENT_TYPES = new HashSet<>();
KNOWN_ELEMENT_TYPES.add(Package_DeploymentDiagram);
KNOWN_ELEMENT_TYPES.add(Dependency_Shape);
KNOWN_ELEMENT_TYPES.add(Model_Shape);
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java
index b47e0e1c6b2..2f11a5e9ecb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java
@@ -1052,11 +1052,11 @@ public class UMLParserProvider extends AbstractProvider implements IParserProvid
*/
@Override
public IParser getParser(IAdaptable hint) {
- String vid = (String) hint.getAdapter(String.class);
+ String vid = hint.getAdapter(String.class);
if (vid != null) {
return getParser(UMLVisualIDRegistry.getVisualID(vid));
}
- View view = (View) hint.getAdapter(View.class);
+ View view = hint.getAdapter(View.class);
if (view != null) {
return getParser(UMLVisualIDRegistry.getVisualID(view));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java
index 47fcd933383..8c37ff15d19 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java
@@ -39,7 +39,7 @@ public class UMLValidationDecoratorProvider extends ValidationDecoratorProvider
*/
@Override
public void createDecorators(IDecoratorTarget decoratorTarget) {
- EditPart editPart = (EditPart) decoratorTarget.getAdapter(EditPart.class);
+ EditPart editPart = decoratorTarget.getAdapter(EditPart.class);
if (editPart instanceof GraphicalEditPart ||
editPart instanceof AbstractConnectionEditPart) {
Object model = editPart.getModel();
@@ -68,7 +68,7 @@ public class UMLValidationDecoratorProvider extends ValidationDecoratorProvider
return false;
}
IDecoratorTarget decoratorTarget = ((CreateDecoratorsOperation) operation).getDecoratorTarget();
- View view = (View) decoratorTarget.getAdapter(
+ View view = decoratorTarget.getAdapter(
View.class);
return view != null && DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(view));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java
index d00c777ea9c..bf787ba13ef 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java
@@ -196,11 +196,11 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
*/
protected boolean provides(CreateViewForKindOperation op) {
/*
- if (op.getViewKind() == Node.class)
- return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
- if (op.getViewKind() == Edge.class)
- return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
- */
+ * if (op.getViewKind() == Node.class)
+ * return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
+ * if (op.getViewKind() == Edge.class)
+ * return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
+ */
// check Diagram Type should be the class diagram
String modelID = UMLVisualIDRegistry.getModelID(op.getContainerView());
@@ -221,13 +221,13 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
*/
protected String getDiagramProvidedId() {
/*
- * Indicates for which diagram this provider works for.
- * <p>
- * This method can be overloaded when diagram editor inherits from another one, but should never be <code>null</code>
- * </p>
- *
- * @return the unique identifier of the diagram for which views are provided.
- */
+ * Indicates for which diagram this provider works for.
+ * <p>
+ * This method can be overloaded when diagram editor inherits from another one, but should never be <code>null</code>
+ * </p>
+ *
+ * @return the unique identifier of the diagram for which views are provided.
+ */
return DeploymentDiagramEditPart.MODEL_ID;
}
@@ -269,9 +269,9 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
if (!op.getSemanticHint().equals(elementTypeHint)) {
return false; // if semantic hint is specified it should be the same as in element type
}
- //if (domainElement != null && !visualID.equals(org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement))) {
- // return false; // visual id for node EClass should match visual id from element type
- //}
+ // if (domainElement != null && !visualID.equals(org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement))) {
+ // return false; // visual id for node EClass should match visual id from element type
+ // }
} else {
if (!DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(op.getContainerView()))) {
return false; // foreign diagram
@@ -333,11 +333,11 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
if (elementTypeHint == null || (op.getSemanticHint() != null && !elementTypeHint.equals(op.getSemanticHint()))) {
return false; // our hint is visual id and must be specified, and it should be the same as in element type
}
- //String visualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(elementTypeHint);
- //org.eclipse.emf.ecore.EObject domainElement = getSemanticElement(op.getSemanticAdapter());
- //if (domainElement != null && !visualID.equals(org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getLinkWithClassVisualID(domainElement))) {
- // return false; // visual id for link EClass should match visual id from element type
- //}
+ // String visualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(elementTypeHint);
+ // org.eclipse.emf.ecore.EObject domainElement = getSemanticElement(op.getSemanticAdapter());
+ // if (domainElement != null && !visualID.equals(org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getLinkWithClassVisualID(domainElement))) {
+ // return false; // visual id for link EClass should match visual id from element type
+ // }
return true;
}
@@ -477,7 +477,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DependencyNode");
@@ -500,7 +500,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Model");
@@ -521,7 +521,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Package");
@@ -542,7 +542,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
@@ -562,7 +562,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
@@ -581,7 +581,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
@@ -602,7 +602,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
@@ -623,7 +623,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
@@ -649,7 +649,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
@@ -670,7 +670,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DefaultNamedElement");
@@ -689,7 +689,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
stampShortcut(containerView, node);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DeploymentSpecification");
@@ -712,7 +712,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(ModelEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Model");
@@ -732,7 +732,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(PackageEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Package");
@@ -752,7 +752,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(DeviceEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
@@ -770,7 +770,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(NestedDeviceEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
@@ -790,7 +790,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
@@ -808,7 +808,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(NestedExecutionEnvironmentEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
@@ -828,7 +828,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(NodeEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
@@ -846,7 +846,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(NestedNodeEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
@@ -866,7 +866,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
@@ -891,7 +891,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartACN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
@@ -916,7 +916,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(NestedArtifactNodeEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
@@ -934,7 +934,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(CommentEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
@@ -952,7 +952,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(ConstraintEditPartCN.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
@@ -971,7 +971,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(DeploymentSpecAsClassifierEditPart.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DeploymentSpecification");
@@ -994,7 +994,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(DeploymentSpecAsPackageableElEditPart.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DeploymentSpecification");
@@ -1017,7 +1017,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
node.setType(UMLVisualIDRegistry.getType(DeploymentSpecAsNestedArtifactEditPart.VISUAL_ID));
ViewUtil.insertChildView(containerView, node, index, persisted);
node.setElement(domainElement);
- // initializeFromPreferences
+ // initializeFromPreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DeploymentSpecification");
@@ -1038,7 +1038,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1049,10 +1049,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
// initializePreferences
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
return edge;
}
@@ -1065,7 +1065,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1077,10 +1077,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "CommentAnnotatedElement");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
return edge;
}
@@ -1093,7 +1093,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1105,10 +1105,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "ConstraintConstrainedElement");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
return edge;
}
@@ -1121,7 +1121,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1133,10 +1133,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Deployment");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
Node deployment_NameLabel = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentNameEditPart.VISUAL_ID));
deployment_NameLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
Location deployment_NameLabel_Location = (Location) deployment_NameLabel.getLayoutConstraint();
@@ -1160,7 +1160,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1172,10 +1172,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Manifestation");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
Node manifestation_NameLabel = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationNameEditPart.VISUAL_ID));
manifestation_NameLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
Location manifestation_NameLabel_Location = (Location) manifestation_NameLabel.getLayoutConstraint();
@@ -1199,7 +1199,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1211,10 +1211,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Generalization");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
Node generalization_StereotypeLabel = createLabel(edge, UMLVisualIDRegistry.getType(GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
generalization_StereotypeLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
Location generalization_StereotypeLabel_Location = (Location) generalization_StereotypeLabel.getLayoutConstraint();
@@ -1233,7 +1233,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1245,10 +1245,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DependencyLink");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
Node dependency_NameLabel = createLabel(edge, UMLVisualIDRegistry.getType(DependencyNameEditPart.VISUAL_ID));
dependency_NameLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
Location dependency_NameLabel_Location = (Location) dependency_NameLabel.getLayoutConstraint();
@@ -1272,7 +1272,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1284,10 +1284,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DependencyBranchLink");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
return edge;
}
@@ -1300,7 +1300,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
Connector edge = NotationFactory.eINSTANCE.createConnector();
edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ List<RelativeBendpoint> points = new ArrayList<>(2);
points.add(new RelativeBendpoint());
points.add(new RelativeBendpoint());
bendpoints.setPoints(points);
@@ -1312,10 +1312,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "CommunicationPath");
- //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- //if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- //}
+ // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ // if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ // }
Node communicationPath_NameLabel = createLabel(edge, UMLVisualIDRegistry.getType(CommunicationPathNameEditPart.VISUAL_ID));
communicationPath_NameLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
Location communicationPath_NameLabel_Location = (Location) communicationPath_NameLabel.getLayoutConstraint();
@@ -1358,9 +1358,9 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
*/
protected Node createCompartment(View owner, String hint, boolean canCollapse, boolean hasTitle, boolean canSort,
boolean canFilter) {
- //SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment();
- //rv.setShowTitle(showTitle);
- //rv.setCollapsed(isCollapsed);
+ // SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment();
+ // rv.setShowTitle(showTitle);
+ // rv.setCollapsed(isCollapsed);
Node rv = NotationFactory.eINSTANCE.createBasicCompartment();
rv.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
@@ -1387,7 +1387,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
if (semanticAdapter == null) {
return null;
}
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+ EObject eObject = semanticAdapter.getAdapter(EObject.class);
if (eObject != null) {
return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
}
@@ -1401,7 +1401,7 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
if (semanticAdapter == null) {
return null;
}
- return (IElementType) semanticAdapter.getAdapter(IElementType.class);
+ return semanticAdapter.getAdapter(IElementType.class);
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java
index e72cc7bf73e..97e940706e2 100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* CEA LIST - Initial API and implementation
*/
@@ -23,11 +23,12 @@ public class UMLPropertySection extends DefaultPropertySection implements IPrope
/**
* Modify/unwrap selection.
+ *
* @generated
*/
@Override
protected Object transformSelection(Object selected) {
- selected = /*super.*/transformSelectionToDomain(selected);
+ selected = /* super. */transformSelectionToDomain(selected);
return selected;
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java
index 99886bede22..fc165b6f941 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java
@@ -65,7 +65,7 @@ public class UMLSheetLabelProvider extends BaseLabelProvider implements ILabelPr
return (View) element;
}
if (element instanceof IAdaptable) {
- return (View) ((IAdaptable) element).getAdapter(View.class);
+ return ((IAdaptable) element).getAdapter(View.class);
}
return null;
}

Back to the top