Examples of evaluate()


Examples of org.eclipse.jface.text.rules.IPredicateRule.evaluate()

    IToken token;
    for (IRule r : fRules) {
      IPredicateRule rule = (IPredicateRule) r;
      token= rule.getSuccessToken();
      if (token.getData().equals(contentType)) {
        token = rule.evaluate(this, true);
        if (token.isEOF() || !token.isUndefined()) {
          return token;
        }
      }
    }

Examples of org.eclipse.jface.text.templates.DocumentTemplateContext.evaluate()

        final DocumentTemplateContext context = new DocumentTemplateContext(
                ErlangSourceContextTypeModule.getDefault(), new Document(
                        fTemplate.getPattern()), 0, fTemplate.getPattern().length());
        TemplateBuffer tb;
        try {
            tb = context.evaluate(fTemplate);
            variable.setValue(tb.getString());
        } catch (final BadLocationException e) {
        } catch (final TemplateException e) {
        }
        reentry = false;

Examples of org.eclipse.jface.text.templates.TemplateContext.evaluate()

                final Template template = getTemplate();
                if (context instanceof ErlangTemplateContext) {
                    final ErlangTemplateContext etc = (ErlangTemplateContext) context;
                    templateBuffer = etc.evaluate(template, true);
                } else {
                    templateBuffer = context.evaluate(template);
                }
            } catch (final TemplateException e) {
                return null;
            }
            return templateBuffer.getString();

Examples of org.eclipse.jst.jsf.core.tagmatcher.XPathMatchingAlgorithm.evaluate()

                AxiomaticSet set = null;

                try
                {
                    set = xpathAlg.evaluate(node);
                    // map dom nodes to tag identifiers
                    set = elem2TagIdMapper.map(set);
                }
                catch (final InvalidExpressionException e)
                {

Examples of org.eclipse.ocl.Query.evaluate()

        evalEnv.replace((String) nextEntry.getKey(), nextEntry
            .getValue());
      }
      try {
        initExtentMap(context);
        Object result = oclQuery.evaluate(context);
        return (result != oclInstance.getEnvironment()
            .getOCLStandardLibrary().getOclInvalid()) ? result
            : null;
      } finally {
        evalEnv.clear();

Examples of org.eclipse.php.internal.ui.corext.template.php.CodeTemplateContext.evaluate()

    context.setVariable(CodeTemplateContextType.TYPENAME,
        Signature.getSimpleName(typeQualifiedName));

    TemplateBuffer buffer;
    try {
      buffer = context.evaluate(template);
    } catch (BadLocationException e) {
      throw new CoreException(Status.CANCEL_STATUS);
    } catch (TemplateException e) {
      throw new CoreException(Status.CANCEL_STATUS);
    }

Examples of org.eclipse.sapphire.modeling.el.Function.evaluate()

                                                final Runnable refreshOp )
    {
        Function f = ( function == null ? Literal.NULL : function );
        f = FailSafeFunction.create( f, Literal.create( expectedType ), defaultValue );
       
        final FunctionResult fr = f.evaluate( new PartFunctionContext( this, element ) );
       
        if( refreshOp != null )
        {
            fr.attach
            (

Examples of org.eclipse.swt.browser.Browser.evaluate()

    shell.setLayout(new FillLayout());
    Browser browser_ = new Browser(shell, browser.getStyle());
    browser_.setText("<html></html>");
    String browserName = null;
    String versionSearch = null;
    String userAgent = (String)browser_.evaluate("return navigator.userAgent");
    String navigatorVendor = (String)browser_.evaluate("return navigator.vendor");
    if(browserName == null && userAgent != null && userAgent.indexOf("Chrome") != -1) {
      versionSearch = browserName = "Chrome";
    }
    if(browserName == null && userAgent != null && userAgent.indexOf("OmniWeb") != -1) {

Examples of org.eclipse.test.internal.performance.eval.Evaluator.evaluate()

  public void assertPerformanceInRelativeBand(PerformanceMeter performanceMeter, Dimension dim, int lowerPercentage, int upperPercentage) {
      Evaluator e= new Evaluator();
    e.setAssertCheckers(new AssertChecker[] {
            new RelativeBandChecker((Dim) dim, 1.0+(lowerPercentage / 100.0), 1.0+(upperPercentage / 100.0)),
    });
    e.evaluate(performanceMeter);
  }

  /**
   * Asserts that the measurement specified by the dimension captured in the given
   * performance meter is within a certain range with respect to some reference value.

Examples of org.eclipse.wst.xml.xpath2.processor.Evaluator.evaluate()

        }
        else {
           eval = new DefaultEvaluator(fDynamicContext, null);  
        }
       
        ResultSequence rs = eval.evaluate(xp);

        boolean result = false;

        if (rs == null) {
           result = false;
TOP
Copyright © 2018 www.massapi.com. 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.