|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This adapter interface provides support for lazy initialization of UI workbench elements that are displayed visually. This adapter is used with an associated deferred content provider.
DeferredTreeContentManager
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 interface org.eclipse.ui.model.IWorkbenchAdapter |
---|
getChildren, getImageDescriptor, getLabel, getParent |
Method Detail |
public void fetchDeferredChildren(Object object, IElementCollector collector, IProgressMonitor monitor)
It is good practice to check the passed in monitor for cancellation. This will provide good responsiveness for cancellation requests made by the user.
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.
public boolean isContainer()
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.
true
if the adapter may have childen, and false
otherwise.public ISchedulingRule getRule(Object object)
object
- the object whose children are being fetched
null
.Job.setRule(ISchedulingRule)
|
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.