Examples of EvaluationContext


Examples of org.eclipse.core.expressions.EvaluationContext

    IWorkbench workbench = (IWorkbench) site.getService(IWorkbench.class);
    IWorkbenchWindow window = (IWorkbenchWindow) site
        .getService(IWorkbenchWindow.class);
    IHandlerService serv = (IHandlerService) workbench
        .getService(IHandlerService.class);
    appContext = new EvaluationContext(serv.getCurrentState(),
        Collections.EMPTY_LIST);

    // set up the appContext as we would want it.
    appContext.addVariable(ISources.ACTIVE_CURRENT_SELECTION_NAME,
        StructuredSelection.EMPTY);
View Full Code Here

Examples of org.eclipse.core.expressions.EvaluationContext

  }
 
  private IEvaluationContext fillInContext(boolean fullContext) {
    IEvaluationContext tmpContext = getCurrentState();

    EvaluationContext context = null;
    if (fullContext) {
      context = new EvaluationContext(null, tmpContext.getDefaultVariable());
      copyVariable(context, tmpContext, ISources.ACTIVE_CURRENT_SELECTION_NAME);
      copyVariable(context, tmpContext, ISources.ACTIVE_FOCUS_CONTROL_ID_NAME);
      copyVariable(context, tmpContext, ISources.ACTIVE_FOCUS_CONTROL_NAME);
      copyVariable(context, tmpContext, ISources.ACTIVE_MENU_EDITOR_INPUT_NAME);
      copyVariable(context, tmpContext, ISources.ACTIVE_MENU_NAME);
      copyVariable(context, tmpContext, ISources.ACTIVE_MENU_SELECTION_NAME);
    } else {
      context = new EvaluationContext(null, Collections.EMPTY_LIST);
    }

    copyVariable(context, tmpContext, ISources.ACTIVE_ACTION_SETS_NAME);
    copyVariable(context, tmpContext, ISources.ACTIVE_CONTEXT_NAME);
    copyVariable(context, tmpContext, ISources.ACTIVE_EDITOR_ID_NAME);
View Full Code Here

Examples of org.eclipse.core.expressions.EvaluationContext

    if (variable == null) {
      throw new CoreException(new ExpressionStatus(
        ExpressionStatus.VARIABLE_NOT_DEFINED,
        Messages.format(ExpressionMessages.WithExpression_variable_not_defined, fVariable)));
    }
    return evaluateAnd(new EvaluationContext(context, variable));
  }
View Full Code Here

Examples of org.eclipse.core.expressions.EvaluationContext

    if (variable == null) {
      throw new CoreException(new ExpressionStatus(
        ExpressionStatus.VARIABLE_NOT_DEFINED,
        Messages.format(ExpressionMessages.ResolveExpression_variable_not_defined, fVariable)));
    }
    return evaluateAnd(new EvaluationContext(context, variable));
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.eval.EvaluationContext

  /**
   * @see IJavaProject#newEvaluationContext()
   */
  public IEvaluationContext newEvaluationContext() {
    EvaluationContext context = new EvaluationContext();
    context.setLineSeparator(Util.getLineSeparator(null/*no existing source*/, this));
    return new EvaluationContextWrapper(context, this);
  }
View Full Code Here

Examples of org.eclipse.wb.core.eval.EvaluationContext

          }
          // evaluate arguments
          List<Object> argumentValues;
          {
            EditorState state = JavaInfoUtils.getState(m_this);
            EvaluationContext context =
                new EvaluationContext(state.getEditorLoader(), state.getFlowDescription());
            argumentValues = Lists.newArrayList();
            for (Expression argument : arguments) {
              Object value = AstEvaluationEngine.evaluate(context, argument);
              JavaInfoEvaluationHelper.setValue(argument, value);
              argumentValues.add(value);
View Full Code Here

Examples of org.jacorb.notification.filter.EvaluationContext

    {
        this (evaluator, CurrentTimeUtil.LOCAL_TIME);
    }
   
    public EvaluationContext newEvaluationContext() {
        return new EvaluationContext(evaluator_, currentTimeUtil_);
    }
View Full Code Here

Examples of org.jboss.el.lang.EvaluationContext

     */
    public MethodInfo getMethodInfo(ELContext context)
            throws PropertyNotFoundException, MethodNotFoundException,
            ELException {
        Node n = this.getNode();
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return n.getMethodInfo(ctx, this.paramTypes);
    }
View Full Code Here

Examples of org.jboss.el.lang.EvaluationContext

     *      java.lang.Object[])
     */
    public Object invoke(ELContext context, Object[] params)
            throws PropertyNotFoundException, MethodNotFoundException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return this.getNode().invoke(ctx, this.paramTypes, params);
    }
View Full Code Here

Examples of org.jboss.el.lang.EvaluationContext

     *
     * @see javax.el.ValueExpression#getType(javax.el.ELContext)
     */
    public Class getType(ELContext context) throws PropertyNotFoundException,
            ELException {
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return this.getNode().getType(ctx);
    }
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.