KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > contexts > provisional > IDebugContextProvider


1 /*******************************************************************************
2  * Copyright (c) 2005, 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.internal.ui.contexts.provisional;
12
13 import org.eclipse.jface.viewers.ISelection;
14 import org.eclipse.ui.IWorkbenchPart;
15
16 /**
17  * Provides debug context context information for a part.
18  * Provides change notification as the active context is changed,
19  * or as the active context changes state.
20  * <p>
21  * Clients may implement this interface.
22  * </p>
23  * @since 3.2
24  */

25 public interface IDebugContextProvider {
26     
27     /**
28      * Returns the part associated with this provider.
29      *
30      * @return the part for which active context information is being provided
31      */

32     public IWorkbenchPart getPart();
33     
34     /**
35      * Registers the given listener for context notifications.
36      *
37      * @param listener context listener
38      */

39     public void addDebugContextListener(IDebugContextListener listener);
40     
41     /**
42      * Unregisters the given listener for context notifications.
43      *
44      * @param listener context listener
45      */

46     public void removeDebugContextListener(IDebugContextListener listener);
47     
48     /**
49      * Returns the currently active context, possibly empty or <code>null</code>.
50      *
51      * @return active context, possibly empty or <code>null</code>.
52      */

53     public ISelection getActiveContext();
54
55 }
56
Popular Tags