Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugEvent


  private void fireEventForThread(int kind, int detail) {
    try {
      IThread[] threads = debugTargetState.getThreads();
      if (threads.length > 0) {
        DebugTargetImpl.fireDebugEvent(new DebugEvent(threads[0], kind, detail));
      }
    } catch (DebugException e) {
      // Actually, this is not thrown in our getThreads()
      return;
    }
View Full Code Here


    // TODO(peter.rybin): from Alexander Pavlov: I think you need to fire a terminate event after
    // this line, for consolePseudoProcess if one is not null.

    // Do not report on threads -- the children are gone when terminated.
    DebugTargetImpl.fireDebugEvent(
        new DebugEvent(debugTargetImpl, DebugEvent.TERMINATE, DebugEvent.UNSPECIFIED));
    DebugTargetImpl.fireDebugEvent(
        new DebugEvent(debugTargetImpl.getLaunch(), DebugEvent.TERMINATE, DebugEvent.UNSPECIFIED));
  }
View Full Code Here

        new DebugEvent(debugTargetImpl.getLaunch(), DebugEvent.TERMINATE, DebugEvent.UNSPECIFIED));
  }

  void fireSuspendEvent(int detail) {
    fireEventForThread(DebugEvent.SUSPEND, detail);
    DebugTargetImpl.fireDebugEvent(new DebugEvent(debugTargetImpl, DebugEvent.SUSPEND, detail));
  }
View Full Code Here

    private int numberOfEnqueued;

    public synchronized void busyStatusChanged(String currentRequest, int numberOfEnqueued) {
      this.currentRequest = currentRequest;
      this.numberOfEnqueued = numberOfEnqueued;
      DebugTargetImpl.fireDebugEvent(new DebugEvent(debugTargetImpl, DebugEvent.CHANGE));
    }
View Full Code Here

        throw new DebugException(status);
      }

      value = Value.create(getEvaluateContext(), jsVariable.getValue(), expressionTrackerNode);

      DebugEvent event = new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT);
      DebugTargetImpl.fireDebugEvent(event);
    }
View Full Code Here

      public void handleDebugEvents(DebugEvent[] events) {

        for(int i = 0;i<events.length;i++) {

          DebugEvent event = events[i];
         
                Object source = event.getSource();
                if (source instanceof IProcess && event.getKind() == DebugEvent.TERMINATE) {

                ILaunch launch = ((IProcess) source).getLaunch();
                if (compiler.equals(launch)) {
                  DebugPlugin.getDefault().removeDebugEventListener(this);
View Full Code Here

          new DebugEvent[] { event });
    }
  }

  public static void fireCreateEvent(IDebugElement element) {
    fireEvent(new DebugEvent(element, DebugEvent.CREATE));
  }
View Full Code Here

  public static void fireCreateEvent(IDebugElement element) {
    fireEvent(new DebugEvent(element, DebugEvent.CREATE));
  }

  public static void fireResumeEvent(IDebugElement element, int detail) {
    fireEvent(new DebugEvent(element, DebugEvent.RESUME, detail));

  }
View Full Code Here

    fireEvent(new DebugEvent(element, DebugEvent.RESUME, detail));

  }

  public static void fireSuspendEvent(IDebugElement element, int detail) {
    fireEvent(new DebugEvent(element, DebugEvent.SUSPEND, detail));
  }
View Full Code Here

  public static void fireSuspendEvent(IDebugElement element, int detail) {
    fireEvent(new DebugEvent(element, DebugEvent.SUSPEND, detail));
  }

  public static void fireTerminateEvent(IDebugElement element) {
    fireEvent(new DebugEvent(element, DebugEvent.TERMINATE));
  }
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.