Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugEvent


    }
    boolean quiet = isSuspendVoteInProgress();
    if (quiet) {
      // evaluations are quiet when a suspend vote is in progress
      // (conditional breakpoints, etc.).
      fireEvent(new DebugEvent(this, DebugEvent.MODEL_SPECIFIC,
          RESUME_QUIET));
    } else {
      fireResumeEvent(evaluationDetail);
    }
    // save and restore current breakpoint information - bug 30837
    IBreakpoint[] breakpoints = getBreakpoints();
    ISchedulingRule rule = null;
    if (evaluationDetail == DebugEvent.EVALUATION_IMPLICIT) {
      rule = getThreadRule();
    }
    try {
      if (rule != null) {
        Job.getJobManager().beginRule(rule, monitor);
      }
      if (monitor == null || !monitor.isCanceled()) {
        evaluation.run(this, monitor);
      }
    } catch (DebugException e) {
      throw e;
    } finally {
      if (rule != null) {
        Job.getJobManager().endRule(rule);
      }
      synchronized (fEvaluationLock) {
        fEvaluationRunnable = null;
        fHonorBreakpoints = true;
        fEvaluationLock.notifyAll();
      }
      if (getBreakpoints().length == 0 && breakpoints.length > 0) {
        for (IBreakpoint breakpoint : breakpoints) {
          addCurrentBreakpoint(breakpoint);
        }
      }
      if (quiet) {
        fireEvent(new DebugEvent(this, DebugEvent.MODEL_SPECIFIC,
            SUSPEND_QUIET));
      } else {
        fireSuspendEvent(evaluationDetail);
      }
      if (fEvaluationInterrupted
View Full Code Here


   * org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse
   * .debug.core.DebugEvent[])
   */
  public void handleDebugEvents(DebugEvent[] events) {
    if (events.length == 1) {
      DebugEvent event = events[0];
      if (event.getSource().equals(getProcess())
          && event.getKind() == DebugEvent.TERMINATE) {
        // schedule a job to clean up the target in case we never get a
        // terminate/disconnect
        // event from the VM
        int timeout = getRequestTimeout();
        if (timeout < 0) {
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.DebugEvent

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.