Package org.eclipse.debug.ui.contexts
Class AbstractDebugContextProvider
- java.lang.Object
-
- org.eclipse.debug.ui.contexts.AbstractDebugContextProvider
-
- All Implemented Interfaces:
IDebugContextProvider
public abstract class AbstractDebugContextProvider extends Object implements IDebugContextProvider
Abstract implementation of a debug context provider.Clients implementing context providers should subclass this class.
- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description AbstractDebugContextProvider(IWorkbenchPart part)Constructs a context provider for the specified part, possiblynull.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDebugContextListener(IDebugContextListener listener)Registers the given listener for debug context events.protected voidfire(DebugContextEvent event)Fires the given context event to all registered listeners.IWorkbenchPartgetPart()Returns the part associated with this context provider ornullif none.voidremoveDebugContextListener(IDebugContextListener listener)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 Detail
-
AbstractDebugContextProvider
public AbstractDebugContextProvider(IWorkbenchPart part)
Constructs a context provider for the specified part, possiblynull.- Parameters:
part- workbench part ornull
-
-
Method Detail
-
addDebugContextListener
public void addDebugContextListener(IDebugContextListener listener)
Description copied from interface:IDebugContextProviderRegisters the given listener for debug context events.- Specified by:
addDebugContextListenerin interfaceIDebugContextProvider- Parameters:
listener- event listener
-
getPart
public IWorkbenchPart 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
public void removeDebugContextListener(IDebugContextListener listener)
Description copied from interface:IDebugContextProviderUnregisters the given listener for debug context events.- Specified by:
removeDebugContextListenerin interfaceIDebugContextProvider- Parameters:
listener- event listener
-
fire
protected void fire(DebugContextEvent event)
Fires the given context event to all registered listeners.- Parameters:
event- debug context event
-
-