org.eclipse.jface.operation |
Package-level Javadoc
Provides JFace support for long-running operations.
Package Specification
Long-running operations must be dealt with specially in order to keep the
UI helpful and responsive. Typically this involves temporarily disabling
most controls and displaying a busy cursor and progress indicator; while
the operation is in progress, the only requests that will be accepted will
be ones to cancel the operation.
The IRunnableWithProgress interface should be implemented by
any class whose instances are intended to be executed as long-running operations.
These objects can then be run in any runnable context (IRunnableContext),
including such standard JFace UI components as application windows (ApplicationWindow),
wizard dialogs (WizardDialog), and progress monitor dialogs (ProgressMonitorDialog).
The utility class ModalContext defines the basic mechanism and
UI event loop for modal operations.
|
Java Source File Name | Type | Comment |
AccumulatingProgressMonitor.java | Class | A progress monitor that accumulates worked and subtask
calls in the following way by wrapping a standard progress monitor:
- When a
worked or subtask call occurs the first time,
the progress monitor posts a runnable into the asynchronous SWT event queue.
- Subsequent calls to
worked or subtask do not post
a new runnable as long as a previous runnable still exists in the SWT event
queue. |
IRunnableContext.java | Interface | Interface for UI components which can execute a long-running operation
in the form of an IRunnableWithProgress . |
IRunnableWithProgress.java | Interface | The IRunnableWithProgress interface should be implemented by any
class whose instances are intended to be executed as a long-running operation. |
IThreadListener.java | Interface | A thread listener is an object that is interested in receiving notifications
of thread changes. |
ModalContext.java | Class | Utility class for supporting modal operations.
The runnable passed to the run method is executed in a
separate thread, depending on the value of the passed fork argument. |