Package org.eclipse.jdt.debug.eval

Examples of org.eclipse.jdt.debug.eval.IAstEvaluationEngine


            }
            if (project == null) {
                return null;
            }

            IAstEvaluationEngine evaluationEngine = JDIDebugPlugin.getDefault()
                    .getEvaluationEngine(project,
                            (IJavaDebugTarget) stackFrame.getDebugTarget());

            EvaluationBlock evaluationBlock = new EvaluationBlock(javaValue,
                    (IJavaReferenceType) type, (IJavaThread) stackFrame.getThread(),
View Full Code Here


            }
            if (project == null) {
                return null;
            }

            IAstEvaluationEngine evaluationEngine = JDIDebugPlugin.getDefault()
                    .getEvaluationEngine(project,
                            (IJavaDebugTarget) stackFrame.getDebugTarget());

            EvaluationBlock evaluationBlock = new EvaluationBlock(javaValue,
                    (IJavaReferenceType) type, (IJavaThread) stackFrame.getThread(),
View Full Code Here

            }
            if (project == null) {
                return null;
            }

            IAstEvaluationEngine evaluationEngine = JDIDebugPlugin.getDefault()
                    .getEvaluationEngine(project,
                            (IJavaDebugTarget) stackFrame.getDebugTarget());

            EvaluationBlock evaluationBlock = new EvaluationBlock(javaValue,
                    (IJavaReferenceType) type, (IJavaThread) stackFrame.getThread(),
View Full Code Here

                  -1) });
          return SUSPEND;
        }
        IJavaDebugTarget target = (IJavaDebugTarget) thread
            .getDebugTarget();
        IAstEvaluationEngine engine = getEvaluationEngine(target,
            project);
        if (engine == null) {
          // If no engine is available, suspend
          return SUSPEND;
        }
        ICompiledExpression expression = lineBreakpoint
            .getExpression(thread);
        if (expression == null) {
          expression = engine.getCompiledExpression(condition, frame);
          lineBreakpoint.setExpression(thread, expression);
        }
        if (expression.hasErrors()) {
          fireConditionHasErrors(lineBreakpoint,
              getMessages(expression));
          return SUSPEND;
        }
        Object lock = listener.getLock();
        synchronized (lock) {
          engine.evaluateExpression(expression, frame, listener,
              DebugEvent.EVALUATION_IMPLICIT, false);
          // TODO: timeout?
          try {
            lock.wait();
          } catch (InterruptedException e) {
View Full Code Here

    removeAllBreakpoints();
    fOutOfSynchTypes.clear();
    if (fEngines != null) {
      Iterator<IAstEvaluationEngine> engines = fEngines.values().iterator();
      while (engines.hasNext()) {
        IAstEvaluationEngine engine = engines
            .next();
        engine.dispose();
      }
      fEngines.clear();
    }
    fVirtualMachine = null;
    setThreadStartHandler(null);
View Full Code Here

   */
  public IAstEvaluationEngine getEvaluationEngine(IJavaProject project) {
    if (fEngines == null) {
      fEngines = new HashMap<IJavaProject, IAstEvaluationEngine>(2);
    }
    IAstEvaluationEngine engine = fEngines
        .get(project);
    if (engine == null) {
      engine = EvaluationManager.newAstEvaluationEngine(project, this);
      fEngines.put(project, engine);
    }
View Full Code Here

      }
      if (project == null) {
        return value;
      }

      IAstEvaluationEngine evaluationEngine = JDIDebugPlugin.getDefault()
          .getEvaluationEngine(project,
              (IJavaDebugTarget) stackFrame.getDebugTarget());

      EvaluationBlock evaluationBlock = new EvaluationBlock(javaValue,
          type, (IJavaThread) stackFrame.getThread(),
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.debug.eval.IAstEvaluationEngine

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.