Package org.eclipse.debug.ui.contexts
Class AbstractDebugContextProvider
java.lang.Object
org.eclipse.debug.ui.contexts.AbstractDebugContextProvider
- All Implemented Interfaces:
IDebugContextProvider
Abstract implementation of a debug context provider.
Clients implementing context providers should subclass this class.
- Since:
- 3.3
-
Constructor Summary
ConstructorDescriptionConstructs a context provider for the specified part, possiblynull
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugContextListener
(IDebugContextListener listener) Registers the given listener for debug context events.protected void
fire
(DebugContextEvent event) Fires the given context event to all registered listeners.getPart()
Returns the part associated with this context provider ornull
if none.void
Unregisters the given listener for debug context events.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.debug.ui.contexts.IDebugContextProvider
getActiveContext
-
Constructor Details
-
AbstractDebugContextProvider
Constructs a context provider for the specified part, possiblynull
.- Parameters:
part
- workbench part ornull
-
-
Method Details
-
addDebugContextListener
Description copied from interface:IDebugContextProvider
Registers the given listener for debug context events.- Specified by:
addDebugContextListener
in interfaceIDebugContextProvider
- Parameters:
listener
- event listener
-
getPart
Description copied from interface:IDebugContextProvider
Returns the part associated with this context provider ornull
if none.- Specified by:
getPart
in interfaceIDebugContextProvider
- Returns:
- part associated with this context provider or
null
-
removeDebugContextListener
Description copied from interface:IDebugContextProvider
Unregisters the given listener for debug context events.- Specified by:
removeDebugContextListener
in interfaceIDebugContextProvider
- Parameters:
listener
- event listener
-
fire
Fires the given context event to all registered listeners.- Parameters:
event
- debug context event
-