Package org.eclipse.core.expressions

Examples of org.eclipse.core.expressions.ExpressionInfo


    }
    return evaluateAnd(new EvaluationContext(context, variable));
  }

  public void collectExpressionInfo(ExpressionInfo info) {
    ExpressionInfo other= new ExpressionInfo();
    super.collectExpressionInfo(other);
    if (other.hasDefaultVariableAccess()) {
      info.addVariableNameAccess(fVariable);
    }
    info.mergeExceptDefaultVariable(other);
 
View Full Code Here


    }
    return evaluateAnd(new EvaluationContext(context, variable));
  }
 
  public void collectExpressionInfo(ExpressionInfo info) {
    ExpressionInfo other= new ExpressionInfo();
    super.collectExpressionInfo(other);
    if (other.hasDefaultVariableAccess()) {
      info.addVariableNameAccess(fVariable);
    }
    info.mergeExceptDefaultVariable(other);
  }
View Full Code Here

  /**
   * @param ref
   * @return
   */
  private String[] getNames(IEvaluationReference ref) {
    ExpressionInfo info = new ExpressionInfo();
    ref.getExpression().collectExpressionInfo(info);
    if (info.hasDefaultVariableAccess()) {
      ArrayList l = new ArrayList(Arrays.asList(info
          .getAccessedVariableNames()));
      l.add(ISources.ACTIVE_CURRENT_SELECTION_NAME);
      return (String[]) l.toArray(new String[l.size()]);
    }
    return info.getAccessedVariableNames();
  }
View Full Code Here

    if (expression == null) {
      return sourcePriority;
    }

    final ExpressionInfo info = expression.computeExpressionInfo();

    // Add the default variable, if any.
    if (info.hasDefaultVariableAccess()) {
      sourcePriority |= ISources.ACTIVE_CURRENT_SELECTION;
    }

    // Add all of the reference variables.
    final String[] sourceNames = info.getAccessedVariableNames();
    for (int i = 0; i < sourceNames.length; i++) {
      final String sourceName = sourceNames[i];
      sourcePriority |= getMapping(sourceName);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.expressions.ExpressionInfo

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.