Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/IDeferredWorkbenchAdapter.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/IDeferredWorkbenchAdapter.java55
1 files changed, 28 insertions, 27 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/IDeferredWorkbenchAdapter.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/IDeferredWorkbenchAdapter.java
index 2cd7ff05814..b15e90a8ab1 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/IDeferredWorkbenchAdapter.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/IDeferredWorkbenchAdapter.java
@@ -18,15 +18,16 @@ import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.ui.model.IWorkbenchAdapter;
/**
- * 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.
+ * 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.
*
* @see DeferredTreeContentManager
* @since 3.0
*/
public interface IDeferredWorkbenchAdapter extends IWorkbenchAdapter {
- /**
+ /**
* Called by a job run in a separate thread to fetch the children of this
* adapter. The adapter should in return notify of new children via the
* collector. This is generally used when a content provider is getting
@@ -42,30 +43,30 @@ public interface IDeferredWorkbenchAdapter extends IWorkbenchAdapter {
* @param monitor a progress monitor that will never be <code>null</code> to
* support reporting and cancellation.
*/
- void fetchDeferredChildren(Object object,
- IElementCollector collector, IProgressMonitor monitor);
+ void fetchDeferredChildren(Object object, IElementCollector collector, IProgressMonitor monitor);
- /**
- * Returns whether this adapter may have children. This is an optimized method
- * used by content providers to allow showing the [+] expand icon without having
- * yet fetched the children for the element.
- * <p>
- * If <code>false</code> is returned, then the content provider may assume
- * that this adapter has no children. If <code>true</code> is returned,
- * then the job manager may assume that this adapter may have children.
- * <p>
- *
- * @return <code>true</code>if the adapter may have childen, and <code>false</code>
- * otherwise.
- */
- boolean isContainer();
+ /**
+ * Returns whether this adapter may have children. This is an optimized method
+ * used by content providers to allow showing the [+] expand icon without having
+ * yet fetched the children for the element.
+ * <p>
+ * If <code>false</code> is returned, then the content provider may assume that
+ * this adapter has no children. If <code>true</code> is returned, then the job
+ * manager may assume that this adapter may have children.
+ * <p>
+ *
+ * @return <code>true</code>if the adapter may have childen, and
+ * <code>false</code> otherwise.
+ */
+ boolean isContainer();
- /**
- * Returns the rule used to schedule the deferred fetching of children for this adapter.
- *
- * @param object the object whose children are being fetched
- * @return the scheduling rule. May be <code>null</code>.
- * @see org.eclipse.core.runtime.jobs.Job#setRule(ISchedulingRule)
- */
- ISchedulingRule getRule(Object object);
+ /**
+ * Returns the rule used to schedule the deferred fetching of children for this
+ * adapter.
+ *
+ * @param object the object whose children are being fetched
+ * @return the scheduling rule. May be <code>null</code>.
+ * @see org.eclipse.core.runtime.jobs.Job#setRule(ISchedulingRule)
+ */
+ ISchedulingRule getRule(Object object);
}

Back to the top