diff options
author | khussey | 2006-06-13 15:33:23 +0000 |
---|---|---|
committer | khussey | 2006-06-13 15:33:23 +0000 |
commit | 3c3d0ff2d31eb53f6690f9adbf5c4ffe6aa7449a (patch) | |
tree | 3876fdeed572551b7faf23fb9d51f43d85163ae8 /plugins | |
parent | e1b4c4584727974e366deca1e89c5dc634702264 (diff) | |
download | org.eclipse.uml2.test-3c3d0ff2d31eb53f6690f9adbf5c4ffe6aa7449a.tar.gz org.eclipse.uml2.test-3c3d0ff2d31eb53f6690f9adbf5c4ffe6aa7449a.tar.xz org.eclipse.uml2.test-3c3d0ff2d31eb53f6690f9adbf5c4ffe6aa7449a.zip |
[146846] Ensuring properties are not navigable if not owned by a classifier.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java index 4fd1ac44..b8fd7e8c 100644 --- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java +++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java @@ -8,7 +8,7 @@ * Contributors: * IBM - initial API and implementation * - * $Id: PropertyOperations.java,v 1.31 2006/06/06 22:23:21 khussey Exp $ + * $Id: PropertyOperations.java,v 1.32 2006/06/13 15:33:23 khussey Exp $ */ package org.eclipse.uml2.uml.internal.operations; @@ -675,7 +675,8 @@ public class PropertyOperations public static boolean isNavigable(Property property) { Association owningAssociation = property.getOwningAssociation(); return owningAssociation == null - || owningAssociation.getNavigableOwnedEnds().contains(property); + ? property.eGet(UMLPackage.Literals.ELEMENT__OWNER, false) instanceof Classifier + : owningAssociation.getNavigableOwnedEnds().contains(property); } /** @@ -908,4 +909,4 @@ public class PropertyOperations return false; } -} // PropertyOperations +} // PropertyOperations
\ No newline at end of file |