Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhussey2006-06-13 17:25:48 +0000
committerkhussey2006-06-13 17:25:48 +0000
commit09172a910d092071a965d14e433116044f8894ec (patch)
treeedb0c00ae97f075985de60bf2c9d785f30f078d8
parent23341811e7f0f5a15e3434433650426ccff16467 (diff)
downloadorg.eclipse.uml2.test-09172a910d092071a965d14e433116044f8894ec.tar.gz
org.eclipse.uml2.test-09172a910d092071a965d14e433116044f8894ec.tar.xz
org.eclipse.uml2.test-09172a910d092071a965d14e433116044f8894ec.zip
[146846] Ensuring properties are not navigable if not owned by a classifier.
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java13
1 files changed, 7 insertions, 6 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 b8fd7e8c..dadaa13c 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.32 2006/06/13 15:33:23 khussey Exp $
+ * $Id: PropertyOperations.java,v 1.33 2006/06/13 17:25:48 khussey Exp $
*/
package org.eclipse.uml2.uml.internal.operations;
@@ -797,13 +797,14 @@ public class PropertyOperations
* @generated NOT
*/
public static void setIsNavigable(Property property, boolean isNavigable) {
- Association association = property.getAssociation();
-
- if (association == null) {
- throw new IllegalStateException();
- }
if (property.isNavigable() != isNavigable) {
+ Association association = property.getAssociation();
+
+ if (association == null) {
+ throw new IllegalStateException();
+ }
+
EList navigableOwnedEnds = association.getNavigableOwnedEnds();
if (isNavigable) {

Back to the top