Package org.eclipse.ocl.helper

Examples of org.eclipse.ocl.helper.OCLHelper


      Query oclQuery = null;
      if (this.queryRef != null) {
        oclQuery = (Query) this.queryRef.get();
      }
      if (oclQuery == null) {
        OCLHelper oclHelper = oclInstance.createOCLHelper();
        oclHelper.setContext(context());
        try {
          OCLExpression oclExpression = oclHelper.createQuery(body());
          oclQuery = oclInstance.createQuery(oclExpression);
          this.queryRef = new WeakReference(oclQuery);
          setStatus(IStatus.OK, null, null);
        } catch (ParserException e) {
          setStatus(IStatus.ERROR, e.getMessage(), e);
View Full Code Here


      Query oclQuery = null;
      if (this.queryRef != null) {
        oclQuery = (Query) this.queryRef.get();
      }
      if (oclQuery == null) {
        OCLHelper oclHelper = oclInstance.createOCLHelper();
        oclHelper.setContext(context());
        try {
          OCLExpression oclExpression = oclHelper.createQuery(body());
          oclQuery = oclInstance.createQuery(oclExpression);
          this.queryRef = new WeakReference(oclQuery);
          setStatus(IStatus.OK, null, null);
        } catch (ParserException e) {
          setStatus(IStatus.ERROR, e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.eclipse.ocl.helper.OCLHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.