|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.io.util.ThreadProgressMonitor
public class ThreadProgressMonitor
Stores current IProgressMonitor
s used in a thread. Allows subtasking
w/o knowing of the parent task.
Constructor Summary | |
---|---|
ThreadProgressMonitor()
|
Method Summary | |
---|---|
static org.eclipse.core.runtime.IProgressMonitor |
getCurrent()
Get the monitor currently associated with the thread. |
static void |
register(org.eclipse.core.runtime.IProgressMonitor monitor)
Register a progress monitor with the current thread. |
static void |
remove(org.eclipse.core.runtime.IProgressMonitor monitor)
Remove a progress monitor that was previously registered. |
static void |
runWithProgressDialog(org.eclipse.jface.operation.IRunnableWithProgress op,
boolean isCancelable)
Run the given operation in a forked thread with a progress monitor dialog or in the current thread with a sub progress monitor if possible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadProgressMonitor()
Method Detail |
---|
public static org.eclipse.core.runtime.IProgressMonitor getCurrent()
null
public static void register(org.eclipse.core.runtime.IProgressMonitor monitor)
remove(IProgressMonitor)
.
monitor
- the progress monitorpublic static void remove(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- the progress monitor to removepublic static void runWithProgressDialog(org.eclipse.jface.operation.IRunnableWithProgress op, boolean isCancelable) throws Exception
op
- the operation to executeisCancelable
- if the operation can be canceled
Exception
- if any error occurs executing the operation
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |