|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface common to all objects that provide a debug context. A context provider is registered with a debug context service associated with a specific window.
A context provider can provide context information for a specific workbench part. There can only be one context provider registered per part with a context service. When there is more than one context provider per window, the context provider associated with the most recently active part provides the context for that window.
A context provider does not have to be associated with a part. In this case the provider
specifies null
for its part, and provides context information for the window.
There can only be one context provider without an associated part registered per context
service (i.e. per window). A context provider that provides context without an associated
part is only active (i.e. used to provide context information) when there are no other
context providers with associated parts registered with that service.
Clients may implement this interface.
IDebugContextManager
,
IDebugContextService
,
IDebugContextListener
Method Summary | |
---|---|
void |
addDebugContextListener(IDebugContextListener listener)
Registers the given listener for debug context events. |
ISelection |
getActiveContext()
Returns the currently active context, possibly empty or null . |
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. |
Method Detail |
public IWorkbenchPart getPart()
null
if none.
null
public void addDebugContextListener(IDebugContextListener listener)
listener
- event listenerpublic void removeDebugContextListener(IDebugContextListener listener)
listener
- event listenerpublic ISelection getActiveContext()
null
.
null
.
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.