Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-12-11 11:01:49 +0000
committerCamille Letavernier2014-12-11 13:26:17 +0000
commit8e41ffa6ef8250c06fe310ebf982d5b8234be80b (patch)
tree071536ad539ab4ed1b4bf84302e89e505b61bc2a /plugins/uml
parent0d55ad52d8e05c4058c32185fd4c4f9f155b004f (diff)
downloadorg.eclipse.papyrus-8e41ffa6ef8250c06fe310ebf982d5b8234be80b.tar.gz
org.eclipse.papyrus-8e41ffa6ef8250c06fe310ebf982d5b8234be80b.tar.xz
org.eclipse.papyrus-8e41ffa6ef8250c06fe310ebf982d5b8234be80b.zip
454788: [Usability] Deleting associations on the diagram and model
explorer results in different results https://bugs.eclipse.org/bugs/show_bug.cgi?id=454788
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/matcher/AssociationMatcher.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/matcher/AssociationMatcher.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/matcher/AssociationMatcher.java
index 9f6ffddfa0b..d4b89cd1106 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/matcher/AssociationMatcher.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/matcher/AssociationMatcher.java
@@ -50,6 +50,7 @@ public class AssociationMatcher implements IElementMatcher {
}
private boolean hasNoNature(Element element) {
- return (ElementUtil.getNature(element) == null);
+ String nature = ElementUtil.getNature(element);
+ return nature == null || "".equals(nature);
}
}

Back to the top