|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.rdt.sync.core.RecursiveSubMonitor
public class RecursiveSubMonitor
Submonitor capable of recursive task reporting. New subtasks are appended to the parent's subtask. Operates as a thin wrapper around the usual tree of submonitors, which still do most of the work.
| Method Summary | |
|---|---|
void |
beginTask(java.lang.String name,
int totalWork)
|
void |
clearBlocked()
|
static RecursiveSubMonitor |
convert(IProgressMonitor monitor)
Convert the underlying submonitor as before but wrap it in a recursive submonitor. |
static RecursiveSubMonitor |
convert(IProgressMonitor monitor,
int work)
Convert the underlying submonitor as before but wrap it in a recursive submonitor. |
static RecursiveSubMonitor |
convert(IProgressMonitor monitor,
java.lang.String taskName,
int work)
Convert the underlying submonitor as before but wrap it in a recursive submonitor. |
void |
done()
|
RecursiveSubMonitor |
getParentMonitor()
Return parent monitor or null if parent does not exist or is not a RecursiveSubMonitor |
java.lang.String |
getSubTaskName()
Get the name of the subtask - trivial but essential for recursive task reporting to work |
void |
internalWorked(double work)
|
boolean |
isCanceled()
|
RecursiveSubMonitor |
newChild(int totalWork)
Intercept creating of child monitors to store the parent in the new monitor |
RecursiveSubMonitor |
newChild(int totalWork,
int suppressFlags)
Intercept creating of child monitors to store the parent in the new monitor |
void |
setBlocked(IStatus reason)
|
void |
setCanceled(boolean b)
|
void |
setTaskName(java.lang.String name)
|
RecursiveSubMonitor |
setWorkRemaining(int workRemaining)
|
void |
subTask(java.lang.String name)
Intercept setting of subtask name to store it and prepend parent's subtask |
void |
worked(int work)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getSubTaskName()
public RecursiveSubMonitor getParentMonitor()
public void subTask(java.lang.String name)
name - public RecursiveSubMonitor newChild(int totalWork)
totalWork -
public RecursiveSubMonitor newChild(int totalWork,
int suppressFlags)
totalWork - suppressFlags -
public static RecursiveSubMonitor convert(IProgressMonitor monitor)
monitor -
public static RecursiveSubMonitor convert(IProgressMonitor monitor,
int work)
monitor -
public static RecursiveSubMonitor convert(IProgressMonitor monitor,
java.lang.String taskName,
int work)
monitor -
public RecursiveSubMonitor setWorkRemaining(int workRemaining)
public boolean isCanceled()
public void setTaskName(java.lang.String name)
public void beginTask(java.lang.String name,
int totalWork)
public void done()
public void internalWorked(double work)
public void worked(int work)
public void setCanceled(boolean b)
public void clearBlocked()
public void setBlocked(IStatus reason)
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||