KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > ui > contexts > IDebugContextManager


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 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.ui.contexts;
12
13 import org.eclipse.ui.IWorkbenchWindow;
14
15 /**
16  * Manages debug context services. There is a debug context service
17  * for each workbench window. Clients interested in context change
18  * notification for all windows can register with the manager. Clients
19  * interested in context change notification for a specific window
20  * can register with the context service specific to that window.
21  * <p>
22  * Clients register debug context providers with a context service - i.e.
23  * for a specific window.
24  * </p>
25  * <p>
26  * Not intended to be implemented by clients.
27  * </p>
28  * @see IDebugContextProvider
29  * @see IDebugContextListener
30  * @see IDebugContextService
31  * @since 3.3
32  */

33 public interface IDebugContextManager {
34     
35     /**
36      * Registers the given listener for debug context notification in all windows.
37      *
38      * @param listener debug context listener
39      */

40     public void addDebugContextListener(IDebugContextListener listener);
41     
42     /**
43      * Unregisters the given listener for context notification in all windows.
44      *
45      * @param listener debug context listener
46      */

47     public void removeDebugContextListener(IDebugContextListener listener);
48     
49     /**
50      * Returns the debug context service for the specified window.
51      *
52      * @param window workbench window
53      * @return debug context service
54      */

55     public IDebugContextService getContextService(IWorkbenchWindow window);
56 }
57
Popular Tags