KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > contexts > IDebugContextService


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;
12
13 import org.eclipse.debug.internal.ui.contexts.provisional.IDebugContextListener;
14 import org.eclipse.jface.viewers.ISelection;
15
16
17 /**
18  * Debug context service for a window.
19  *
20  * @since 3.2
21  */

22 public interface IDebugContextService {
23     
24     /**
25      * Registers for context activation notification in this service.
26      *
27      * @param listener
28      */

29     public void addDebugContextListener(IDebugContextListener listener);
30     /**
31      * Deregisters for context activation notification in this service.
32      *
33      * @param listener
34      */

35     public void removeDebugContextListener(IDebugContextListener listener);
36     
37     /**
38      * Registers for context activation notification in the specified part.
39      *
40      * @param listener
41      * @param partId
42      */

43     public void addDebugContextListener(IDebugContextListener listener, String JavaDoc partId);
44     
45     /**
46      * Deregisters for context activation notification in the specified part.
47      *
48      * @param listener
49      * @param partId
50      */

51     public void removeDebugContextListener(IDebugContextListener listener, String JavaDoc partId);
52         
53     /**
54      * Returns the active context in this service's window
55      * or <code>null</code>.
56      *
57      * @return
58      */

59     public ISelection getActiveContext();
60     
61     /**
62      * Returns the active context in the specified part or <code>null</code>.
63      *
64      * @param partId
65      * @return
66      */

67     public ISelection getActiveContext(String JavaDoc partId);
68     
69 }
70
Popular Tags