blob: 09df280b01b481c7c3a028a0f81d63b50e3722c6 [file] [log] [blame]
package org.eclipse.debug.core;
/**********************************************************************
Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
This file is made available under the terms of the Common Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/cpl-v10.html
**********************************************************************/
import org.eclipse.core.resources.IMarkerDelta;
import org.eclipse.debug.core.model.IBreakpoint;
/**
* A breakpoints listener is notified of breakpoint additions,
* removals, and changes. Listeners register and deregister with the
* breakpoint manager.
* <p>
* This interface is analagous to <code>IBreakpointListener</code> except
* notifications are batched for more than one breakpoint when possible.
* </p>
* <p>
* Clients may implement this interface.
* </p>
* @see IBreakpointManager
* @since 2.1
*/
public interface IBreakpointsListener {
/**
* Notifies this listener that the given breakpoints have been added
* to the breakpoint manager.
*
* @param breakpoints the added breakpoints
*/
public void breakpointsAdded(IBreakpoint[] breakpoints);
/**
* Notifies this listener that the given breakpoints have been removed
* from the breakpoint manager.
* If a breakpoint has been removed because it has been deleted,
* the associated marker delta is also provided.
*
* @param breakpoints the removed breakpoints
* @param deltas the associated marker deltas. Entries may be
* <code>null</code> when a breakpoint is removed from the breakpoint
* manager without being deleted
*
* @see org.eclipse.core.resources.IMarkerDelta
*/
public void breakpointsRemoved(IBreakpoint[] breakpoints, IMarkerDelta[] deltas);
/**
* Notifies this listener that the given breakpoints have
* changed, as described by the corresponding deltas.
*
* @param breakpoints the changed breakpoints
* @param deltas the marker deltas that describe the changes
* with the markers associated with the given breakpoints. Entries
* may be <code>null</code> when a breakpoint change does not generate
* a marker delta
*
* @see org.eclipse.core.resources.IMarkerDelta
*/
public void breakpointsChanged(IBreakpoint[] breakpoints, IMarkerDelta[] deltas);
}