commit | 055eece7d36f568bef7b96a35a0111aebf17b04b | [log] [tgz] |
---|---|---|
author | Jessy Mallet <jessy.mallet@obeo.fr> | Tue Sep 05 16:15:01 2023 +0200 |
committer | Jessy Mallet <jessy.mallet@obeo.fr> | Tue Sep 05 16:37:35 2023 +0200 |
tree | 3f806aa727a1bfe245966e804f9ad5f123e8512a | |
parent | 751fcb6f3b7fc8f0330001ab67a71e3b7eca0dd0 [diff] |
Bug 582371: [Sirius][ComponentDiagram] Prohibits Property creation on typed Port Property creation is now unauthorized on typed Port. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=582371 Change-Id: Iff7a931fe8c663c6e5059a7aff93b536b4948f48 Signed-off-by: Jessy Mallet <jessy.mallet@obeo.fr>
diff --git a/plugins/uml/org.eclipse.papyrus.sirius.uml.diagram.component/src/org/eclipse/papyrus/sirius/uml/diagram/component/services/ComponentDiagramServices.java b/plugins/uml/org.eclipse.papyrus.sirius.uml.diagram.component/src/org/eclipse/papyrus/sirius/uml/diagram/component/services/ComponentDiagramServices.java index 3a0e689..3c20348 100644 --- a/plugins/uml/org.eclipse.papyrus.sirius.uml.diagram.component/src/org/eclipse/papyrus/sirius/uml/diagram/component/services/ComponentDiagramServices.java +++ b/plugins/uml/org.eclipse.papyrus.sirius.uml.diagram.component/src/org/eclipse/papyrus/sirius/uml/diagram/component/services/ComponentDiagramServices.java
@@ -257,7 +257,7 @@ */ public boolean canCreatePropertyCPD(EObject parent, DSemanticDecorator parentView) { boolean canCreate = false; - if (parent instanceof Property property) { + if (parent instanceof Property property && !(parent instanceof Port)) { canCreate = property.getType() != null && (property.getType() instanceof Classifier); } else { if (parent instanceof Interface) {