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
ConstructorsConstructorDescriptionConstructs a context provider for the specified part, possiblynull. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugContextListener(IDebugContextListener listener) Registers the given listener for debug context events.protected voidfire(DebugContextEvent event) Fires the given context event to all registered listeners.getPart()Returns the part associated with this context provider ornullif none.voidUnregisters the given listener for debug context events.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:IDebugContextProviderRegisters the given listener for debug context events.- Specified by:
addDebugContextListenerin interfaceIDebugContextProvider- Parameters:
listener- event listener
-
getPart
Description copied from interface:IDebugContextProviderReturns the part associated with this context provider ornullif none.- Specified by:
getPartin interfaceIDebugContextProvider- Returns:
- part associated with this context provider or
null
-
removeDebugContextListener
Description copied from interface:IDebugContextProviderUnregisters the given listener for debug context events.- Specified by:
removeDebugContextListenerin interfaceIDebugContextProvider- Parameters:
listener- event listener
-
fire
Fires the given context event to all registered listeners.- Parameters:
event- debug context event
-