|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.ProgressMonitorWrapper
org.eclipse.core.runtime.SubProgressMonitor
org.eclipse.net4j.util.om.monitor.EclipseMonitor.SynchronizedSubProgressMonitor
public static class EclipseMonitor.SynchronizedSubProgressMonitor
A sub progress monitor that synchronizes all methods on the parent monitor instance.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.core.runtime.SubProgressMonitor |
|---|
PREPEND_MAIN_LABEL_TO_SUBTASK, SUPPRESS_SUBTASK_LABEL |
| Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor |
|---|
UNKNOWN |
| Constructor Summary | |
|---|---|
EclipseMonitor.SynchronizedSubProgressMonitor(IProgressMonitor monitor,
int ticks)
|
|
| Method Summary | |
|---|---|
void |
beginTask(String name,
int totalWork)
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
void |
clearBlocked()
This implementation of a IProgressMonitorWithBlocking
method forwards to the wrapped progress monitor. |
void |
done()
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
void |
internalWorked(double work)
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
boolean |
isCanceled()
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
void |
setBlocked(IStatus reason)
This implementation of a IProgressMonitorWithBlocking
method forwards to the wrapped progress monitor. |
void |
setCanceled(boolean b)
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
void |
setTaskName(String name)
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
void |
subTask(String name)
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
void |
worked(int work)
This implementation of a IProgressMonitor
method forwards to the wrapped progress monitor. |
| Methods inherited from class org.eclipse.core.runtime.ProgressMonitorWrapper |
|---|
getWrappedProgressMonitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EclipseMonitor.SynchronizedSubProgressMonitor(IProgressMonitor monitor,
int ticks)
| Method Detail |
|---|
public void beginTask(String name,
int totalWork)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
beginTask in interface IProgressMonitorbeginTask in class SubProgressMonitorname - the name (or description) of the main tasktotalWork - the total number of work units into which
the main task is been subdivided. If the value is UNKNOWN
the implementation is free to indicate progress in a way which
doesn't require the total number of work units in advance.IProgressMonitor.beginTask(String, int)public void clearBlocked()
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitorWithBlocking
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
clearBlocked in interface IProgressMonitorWithBlockingclearBlocked in class ProgressMonitorWrapperIProgressMonitorWithBlocking.clearBlocked()public void done()
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
done in interface IProgressMonitordone in class SubProgressMonitorIProgressMonitor.done()public void internalWorked(double work)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
internalWorked in interface IProgressMonitorinternalWorked in class SubProgressMonitorwork - the amount of work doneIProgressMonitor.internalWorked(double)public boolean isCanceled()
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
isCanceled in interface IProgressMonitorisCanceled in class ProgressMonitorWrappertrue if cancellation has been requested,
and false otherwiseIProgressMonitor.isCanceled()public void setBlocked(IStatus reason)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitorWithBlocking
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
setBlocked in interface IProgressMonitorWithBlockingsetBlocked in class ProgressMonitorWrapperreason - an optional status object whose message describes the
reason why this operation is blocked, or null if this
information is not available.IProgressMonitorWithBlocking.setBlocked(IStatus)public void setCanceled(boolean b)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
setCanceled in interface IProgressMonitorsetCanceled in class ProgressMonitorWrapperb - true indicates that cancelation has
been requested (but not necessarily acknowledged);
false clears this flagIProgressMonitor.setCanceled(boolean)public void setTaskName(String name)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
setTaskName in interface IProgressMonitorsetTaskName in class ProgressMonitorWrappername - the name (or description) of the main taskIProgressMonitor.setTaskName(String)public void subTask(String name)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
subTask in interface IProgressMonitorsubTask in class SubProgressMonitorname - the name (or description) of the subtaskIProgressMonitor.subTask(String)public void worked(int work)
org.eclipse.core.runtime.ProgressMonitorWrapperIProgressMonitor
method forwards to the wrapped progress monitor.
Clients may override this method to do additional
processing.
worked in interface IProgressMonitorworked in class SubProgressMonitorwork - a non-negative number of work units just completedIProgressMonitor.worked(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||