KickJava   Java API By Example, From Geeks To Geeks.

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


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
15 import org.eclipse.core.resources.IMarkerDelta;
16 import org.eclipse.debug.core.model.IBreakpoint;
17
18 /**
19  * A breakpoint listener is notified of breakpoint additions,
20  * removals, and changes. Listeners register and unregister with the
21  * breakpoint manager.
22  * <p>
23  * Clients may implement this interface.
24  * </p>
25  * @see IBreakpointManager
26  */

27
28 public interface IBreakpointListener {
29
30     /**
31      * Notifies this listener that the given breakpoint has been added
32      * to the breakpoint manager.
33      *
34      * @param breakpoint the added breakpoint
35      * @since 2.0
36      */

37     public void breakpointAdded(IBreakpoint breakpoint);
38     /**
39      * Notifies this listener that the given breakpoint has been removed
40      * from the breakpoint manager.
41      * If the given breakpoint has been removed because it has been deleted,
42      * the associated marker delta is also provided.
43      *
44      * @param breakpoint the removed breakpoint
45      * @param delta the associated marker delta, or <code>null</code> when
46      * the breakpoint is removed from the breakpoint manager without
47      * being deleted
48      *
49      * @see org.eclipse.core.resources.IMarkerDelta
50      * @since 2.0
51      */

52     public void breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta);
53     
54     /**
55      * Notifies this listener that an attribute of the given breakpoint has
56      * changed, as described by the delta.
57      *
58      * @param breakpoint the changed breakpoint
59      * @param delta the marker delta that describes the changes
60      * with the marker associated with the given breakpoint, or
61      * <code>null</code> when the breakpoint change does not generate
62      * a marker delta
63      *
64      * @see org.eclipse.core.resources.IMarkerDelta
65      * @since 2.0
66      */

67     public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta);
68
69 }
70
Popular Tags