KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Notified of context activation and when the active context changes state.
18  * Listeners register with the debug context manager.
19  * <p>
20  * Clients may implement this interface.
21  * </p>
22  * @since 3.2
23  * @see IDebugContextManager
24  */

25 public interface IDebugContextListener {
26     
27     /**
28      * Notification the given selection contains the active context in the
29      * specified part.
30      *
31      * @param selection selection containing active context
32      * @param part workbench part or <code>null</code>
33      */

34     public void contextActivated(ISelection selection, IWorkbenchPart part);
35     
36     /**
37      * Notification the context in the given selection has changed state
38      * in the specified part. Context changes are only sent for contexts
39      * that are active.
40      *
41      * @param selection selection containing changed context
42      * @param part workbench part or <code>null</code>
43      */

44     public void contextChanged(ISelection selection, IWorkbenchPart part);
45
46 }
47
Popular Tags