KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > IBreakpointsListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.core;
12
13
14 import org.eclipse.core.resources.IMarkerDelta;
15 import org.eclipse.debug.core.model.IBreakpoint;
16
17 /**
18  * A breakpoints listener is notified of breakpoint additions,
19  * removals, and changes. Listeners register and unregister with the
20  * breakpoint manager.
21  * <p>
22  * This interface is analogous to <code>IBreakpointListener</code> except
23  * notifications are batched for more than one breakpoint when possible.
24  * </p>
25  * <p>
26  * Clients may implement this interface.
27  * </p>
28  * @see IBreakpointManager
29  * @since 2.1
30  */

31
32 public interface IBreakpointsListener {
33
34     /**
35      * Notifies this listener that the given breakpoints have been added
36      * to the breakpoint manager.
37      *
38      * @param breakpoints the added breakpoints
39      */

40     public void breakpointsAdded(IBreakpoint[] breakpoints);
41     /**
42      * Notifies this listener that the given breakpoints have been removed
43      * from the breakpoint manager.
44      * If a breakpoint has been removed because it has been deleted,
45      * the associated marker delta is also provided.
46      *
47      * @param breakpoints the removed breakpoints
48      * @param deltas the associated marker deltas. Entries may be
49      * <code>null</code> when a breakpoint is removed from the breakpoint
50      * manager without being deleted
51      *
52      * @see org.eclipse.core.resources.IMarkerDelta
53      */

54     public void breakpointsRemoved(IBreakpoint[] breakpoints, IMarkerDelta[] deltas);
55     
56     /**
57      * Notifies this listener that the given breakpoints have
58      * changed, as described by the corresponding deltas.
59      *
60      * @param breakpoints the changed breakpoints
61      * @param deltas the marker deltas that describe the changes
62      * with the markers associated with the given breakpoints. Entries
63      * may be <code>null</code> when a breakpoint change does not generate
64      * a marker delta
65      *
66      * @see org.eclipse.core.resources.IMarkerDelta
67      */

68     public void breakpointsChanged(IBreakpoint[] breakpoints, IMarkerDelta[] deltas);
69
70 }
71
Popular Tags