Eclipse Platform
Release 3.3

org.eclipse.debug.ui.contexts
Class AbstractDebugContextProvider

java.lang.Object
  extended byorg.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
AbstractDebugContextProvider(IWorkbenchPart part)
          Constructs a context provider for the specified part, possibly null.
 
Method Summary
 void 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.
 IWorkbenchPart getPart()
          Returns the part associated with this context provider or null if none.
 void removeDebugContextListener(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, possibly null.

Parameters:
part - workbench part or null
Method Detail

addDebugContextListener

public void addDebugContextListener(IDebugContextListener listener)
Description copied from interface: IDebugContextProvider
Registers the given listener for debug context events.

Specified by:
addDebugContextListener in interface IDebugContextProvider
Parameters:
listener - event listener

getPart

public IWorkbenchPart getPart()
Description copied from interface: IDebugContextProvider
Returns the part associated with this context provider or null if none.

Specified by:
getPart in interface IDebugContextProvider
Returns:
part associated with this context provider or null

removeDebugContextListener

public void removeDebugContextListener(IDebugContextListener listener)
Description copied from interface: IDebugContextProvider
Unregisters the given listener for debug context events.

Specified by:
removeDebugContextListener in interface IDebugContextProvider
Parameters:
listener - event listener

fire

protected void fire(DebugContextEvent event)
Fires the given context event to all registered listeners.

Parameters:
event - debug context event

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.