Package org.eclipse.core.expressions

Examples of org.eclipse.core.expressions.Expression.evaluate()


  }

  private boolean isEnabledByEnablementElement(Element enablement, IEvaluationContext context) {
    try {
      Expression expression = ExpressionConverter.getDefault().perform(enablement);
      return expression.evaluate(context) == EvaluationResult.TRUE;
    }
    catch (CoreException e) {
      /*
       * This can happen when attempting to resolve a UI variable (e.g. "workbench")
       * in a non-UI environment (infocenter mode). Fail silently.
View Full Code Here


    if (expr == null) {
      expr = createEnablementExpression(delegateShortcutID);
      expressions.put(delegateShortcutID, expr);
    }
    try {
      return expr.evaluate(createContext(receiver)) != EvaluationResult.FALSE;
    } catch (CoreException ce) {
      EclEmmaUIPlugin.log(ce);
      return false;
    }
  }
View Full Code Here

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.