Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLValidator.java')
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLValidator.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLValidator.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLValidator.java
index f2775d36..9942a300 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLValidator.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLValidator.java
@@ -8,9 +8,9 @@
* Contributors:
* IBM - initial API and implementation
* Kenn Hussey (Embarcadero Technologies) - 205188, 204200
- * Kenn Hussey - 286329
+ * Kenn Hussey - 286329, 320318
*
- * $Id: UMLValidator.java,v 1.28 2010/03/02 03:10:31 khussey Exp $
+ * $Id: UMLValidator.java,v 1.29 2010/08/19 18:41:42 khussey Exp $
*/
package org.eclipse.uml2.uml.util;
@@ -20,7 +20,9 @@ import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.util.EObjectValidator;
@@ -4532,6 +4534,19 @@ public class UMLValidator
return result;
}
+ @Override
+ public boolean validate_BidirectionalReferenceIsPaired(EObject eObject,
+ EReference eReference, EReference eOpposite,
+ DiagnosticChain diagnostics, Map<Object, Object> context) {
+ // XXX 320318 - work around missing subsets constraints
+ return eReference == UMLPackage.Literals.ELEMENT__OWNER
+ || eReference == UMLPackage.Literals.ELEMENT__OWNED_ELEMENT
+ || eReference == UMLPackage.Literals.NAMED_ELEMENT__NAMESPACE
+ || eReference == UMLPackage.Literals.NAMESPACE__OWNED_MEMBER
+ || super.validate_BidirectionalReferenceIsPaired(eObject,
+ eReference, eOpposite, diagnostics, context);
+ }
+
/**
* Validates the validateNotOwnSelf constraint of '<em>Element</em>'.
* <!-- begin-user-doc -->

Back to the top