Eclipse Platform
Release 3.0

org.eclipse.ui.progress
Interface IElementCollector


public interface IElementCollector

IElementCollector is a type that allows for the incremental update of a collection of objects. This used for updating trees incrementally with a progres monitor so that the update can be reported.

Since:
3.0
See Also:
IDeferredWorkbenchAdapter, DeferredTreeContentManager

Method Summary
 void add(Object[] elements, IProgressMonitor monitor)
          Add the elements to the IElementCollector.
 void add(Object element, IProgressMonitor monitor)
          Add the element to the IElementCollector.
 void done()
          The element collection is done.
 

Method Detail

add

public void add(Object element,
                IProgressMonitor monitor)
Add the element to the IElementCollector. Send any progress information to monitor.

Parameters:
element - The element being added
monitor - The monitor to send updates to.

add

public void add(Object[] elements,
                IProgressMonitor monitor)
Add the elements to the IElementCollector. Send any progress information to monitor.

Parameters:
elements - The elements being added
monitor - The monitor to send updates to.

done

public void done()
The element collection is done. Clean up any temporary state.


Eclipse Platform
Release 3.0

Guidelines for using Eclipse APIs.

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