Examples of DebugPlugin


Examples of org.eclipse.debug.core.DebugPlugin

   * Fires debug events in the event queue associated with the given event
   * set, and clears the queue.
   * @param set the set to fire events for
   */
  private void fireEvents(EventSet set) {
    DebugPlugin plugin = DebugPlugin.getDefault();
    if (plugin != null) { // check that not in the process of shutting down
      List<DebugEvent> list = null;
      synchronized (fSetToQueue) {
        list = fSetToQueue.remove(set);
      }
      if (list != null) {
        DebugEvent[] events = list.toArray(new DebugEvent[list.size()]);
        plugin.fireDebugEventSet(events);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

  /**
   * Add this breakpoint to the breakpoint manager, or sets it as
   * unregistered.
   */
  protected void register(boolean register) throws CoreException {
    DebugPlugin plugin = DebugPlugin.getDefault();
    if (plugin != null && register) {
      plugin.getBreakpointManager().addBreakpoint(this);
    } else {
      setRegistered(false);
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

   * registered with the manager
   *
   * @return whether this breakpoint should be skipped
   */
  public boolean shouldSkipBreakpoint() throws CoreException {
    DebugPlugin plugin = DebugPlugin.getDefault();
    return plugin != null && isRegistered()
        && !plugin.getBreakpointManager().isEnabled();
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

   * Change notification when there are no marker changes. If the marker does
   * not exist, do not fire a change notification (the marker may not exist if
   * the associated project was closed).
   */
  protected void fireChanged() {
    DebugPlugin plugin = DebugPlugin.getDefault();
    if (plugin != null && markerExists()) {
      plugin.getBreakpointManager().fireBreakpointChanged(this);
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

  /**
   * An attribute of this breakpoint has changed - recreate event requests in
   * all targets.
   */
  protected void recreate() throws CoreException {
    DebugPlugin plugin = DebugPlugin.getDefault();
    if (plugin != null) {
      IDebugTarget[] targets = plugin.getLaunchManager()
          .getDebugTargets();
      for (IDebugTarget target : targets) {
        MultiStatus multiStatus = new MultiStatus(
            JDIDebugPlugin.getUniqueIdentifier(),
            JDIDebugPlugin.ERROR,
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

        null));
    initializeRequests();
    initializeState();
    initializeBreakpoints();
    getLaunch().addDebugTarget(this);
    DebugPlugin plugin = DebugPlugin.getDefault();
    plugin.addDebugEventListener(this);
    fireCreationEvent();
    // begin handling/dispatching events after the creation event is handled
    // by all listeners
    plugin.asyncExec(new Runnable() {
      public void run() {
        EventDispatcher dispatcher = getEventDispatcher();
        if (dispatcher != null) {
          Thread t = new Thread(
              dispatcher,
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

   * breakpoint listener, and all breakpoints are removed from this target.
   * </p>
   */
  protected void cleanup() {
    removeAllThreads();
    DebugPlugin plugin = DebugPlugin.getDefault();
    plugin.getBreakpointManager().removeBreakpointListener(this);
    plugin.getLaunchManager().removeLaunchListener(this);
    plugin.getBreakpointManager().removeBreakpointManagerListener(this);
    plugin.removeDebugEventListener(this);
    removeAllBreakpoints();
    fOutOfSynchTypes.clear();
    if (fEngines != null) {
      Iterator<IAstEvaluationEngine> engines = fEngines.values().iterator();
      while (engines.hasNext()) {
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

    fireHandlerChanged(new HandlerEvent(DumpExecutionDataHandler.this, true,
        false));
  }

  public DumpExecutionDataHandler() {
    final DebugPlugin debug = DebugPlugin.getDefault();
    debug.getLaunchManager().addLaunchListener(launchListener);
    debug.addDebugEventListener(debugListener);
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

    return !CoverageTools.getRunningCoverageLaunches().isEmpty();
  }

  @Override
  public void dispose() {
    final DebugPlugin debug = DebugPlugin.getDefault();
    debug.getLaunchManager().removeLaunchListener(launchListener);
    DebugPlugin.getDefault().addDebugEventListener(debugListener);
  }
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.