|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.debug.ui.DebugElementWorkbenchAdapter
org.eclipse.debug.ui.DeferredDebugElementWorkbenchAdapter
Common function for a deferred workbench adapter for a debug element.
Clients may subclass this class to provide custom adapters for elements in a debug
model. The debug platform provides IDeferredWorkbenchAdapters
for the standard debug
elements. Clients may override the default content in the debug view by providing an
IWorkbenchAdapter
or IDeferredWorkbenchAdapter
for a debug
element.
Field Summary | |
---|---|
protected static Object[] |
EMPTY
An empty collection of children |
Constructor Summary | |
---|---|
DeferredDebugElementWorkbenchAdapter()
|
Method Summary | |
---|---|
void |
fetchDeferredChildren(Object object,
IElementCollector collector,
IProgressMonitor monitor)
Called by a job run in a separate thread to fetch the children of this adapter. |
ISchedulingRule |
getRule(Object object)
Returns the rule used to schedule the deferred fetching of children for this adapter. |
boolean |
isContainer()
Returns whether this adapter may have children. |
Methods inherited from class org.eclipse.debug.ui.DebugElementWorkbenchAdapter |
---|
getBackground, getFont, getForeground, getImageDescriptor, getLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.model.IWorkbenchAdapter |
---|
getChildren, getImageDescriptor, getLabel, getParent |
Field Detail |
protected static final Object[] EMPTY
Constructor Detail |
public DeferredDebugElementWorkbenchAdapter()
Method Detail |
public boolean isContainer()
IDeferredWorkbenchAdapter
If false
is returned, then the content provider may assume
that this adapter has no children. If true
is returned,
then the job manager may assume that this adapter may have children.
isContainer
in interface IDeferredWorkbenchAdapter
true
if the adapter may have childen, and false
otherwise.public ISchedulingRule getRule(Object object)
IDeferredWorkbenchAdapter
getRule
in interface IDeferredWorkbenchAdapter
object
- the object whose children are being fetched
null
.Job.setRule(ISchedulingRule)
public void fetchDeferredChildren(Object object, IElementCollector collector, IProgressMonitor monitor)
IDeferredWorkbenchAdapter
It is good practice to check the passed in monitor for cancellation. This will provide good responsiveness for cancellation requests made by the user.
fetchDeferredChildren
in interface IDeferredWorkbenchAdapter
object
- the object to fetch the children forcollector
- the collector to notify about new children. Should not
be null
.monitor
- a progress monitor that will never be null to
support reporting and cancellation.
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.