Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaadia DHOUIB2015-10-20 14:01:18 +0000
committerGerrit Code Review @ Eclipse.org2015-10-23 12:52:15 +0000
commitf17c27f6b74a8aa6987f236b645f21fec7227ac0 (patch)
tree3bcdac4cf8bcc0663e2c52fb4014ec8eb988b45f /plugins
parentbe72f874723165caebfe2e4e398e4fc1be23a604 (diff)
downloadorg.eclipse.papyrus-f17c27f6b74a8aa6987f236b645f21fec7227ac0.tar.gz
org.eclipse.papyrus-f17c27f6b74a8aa6987f236b645f21fec7227ac0.tar.xz
org.eclipse.papyrus-f17c27f6b74a8aa6987f236b645f21fec7227ac0.zip
Fix Bug 475569
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd/src/org/eclipse/papyrus/uml/diagram/dnd/strategy/classifier/ClassifierAsPropertyToStructuredCompartmentDropStrategy.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd/src/org/eclipse/papyrus/uml/diagram/dnd/strategy/classifier/ClassifierAsPropertyToStructuredCompartmentDropStrategy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd/src/org/eclipse/papyrus/uml/diagram/dnd/strategy/classifier/ClassifierAsPropertyToStructuredCompartmentDropStrategy.java
index a4e66b7efb4..6542c52eb2a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd/src/org/eclipse/papyrus/uml/diagram/dnd/strategy/classifier/ClassifierAsPropertyToStructuredCompartmentDropStrategy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd/src/org/eclipse/papyrus/uml/diagram/dnd/strategy/classifier/ClassifierAsPropertyToStructuredCompartmentDropStrategy.java
@@ -90,10 +90,9 @@ public class ClassifierAsPropertyToStructuredCompartmentDropStrategy extends Tra
}
if (dropElement instanceof Classifier && (false == dropElement instanceof Association)) {
Classifier classifier = (Classifier) dropElement;
- // check whether element is a nested classifier of the targetSemanticElement
- if (classifier.allNamespaces().contains(getTargetSemanticElement(gtEditPart))) {
+
cc.add(helper.dropTypeAsTypedProperty((GraphicalEditPart)gtEditPart, classifier, location));
- }
+
}
}
return cc.canExecute() ? cc : null;

Back to the top