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) {