diff options
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src/org/eclipse/papyrus/constraintwithvsl/editor/xtext/validation/ContextUtil.java')
-rw-r--r-- | extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src/org/eclipse/papyrus/constraintwithvsl/editor/xtext/validation/ContextUtil.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src/org/eclipse/papyrus/constraintwithvsl/editor/xtext/validation/ContextUtil.java b/extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src/org/eclipse/papyrus/constraintwithvsl/editor/xtext/validation/ContextUtil.java deleted file mode 100644 index a0c687e7844..00000000000 --- a/extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src/org/eclipse/papyrus/constraintwithvsl/editor/xtext/validation/ContextUtil.java +++ /dev/null @@ -1,48 +0,0 @@ -/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.constraintwithvsl.editor.xtext.validation;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.marte.vsl.validation.VSLJavaValidator;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Type;
-
-public class ContextUtil {
- public static Type getExpectedType(EObject rule) {
-// EObject context = rule ;
-// while (context != null && !(context instanceof TagSpecificationRule)) {
-// context = context.eContainer() ;
-// }
-// if (context != null) {
-// TagSpecificationRule tag = (TagSpecificationRule) context ;
-// if (tag.getProperty() != null)
-// return tag.getProperty().getType() ;
-// }
-// return null ;
- return VSLJavaValidator._boolean ;
- }
-
- public static Element getContextElement(EObject rule) {
-// EObject context = rule ;
-// while (context != null && !(context instanceof TagSpecificationRule)) {
-// context = context.eContainer() ;
-// }
-// if (context != null) {
-// TagSpecificationRule tag = (TagSpecificationRule) context ;
-// return tag.getProperty() ;
-// }
-// return null ;
- return VSLJavaValidator.getContextElement() ;
- }
-}
|