public class RecursiveSubMonitor extends Object
Modifier and Type | Method and Description |
---|---|
void |
beginTask(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,
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
|
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(String name) |
RecursiveSubMonitor |
setWorkRemaining(int workRemaining) |
void |
subTask(String name)
Intercept setting of subtask name to store it and prepend parent's subtask
|
void |
worked(int work) |
public String getSubTaskName()
public RecursiveSubMonitor getParentMonitor()
public void subTask(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, String taskName, int work)
monitor
- public RecursiveSubMonitor setWorkRemaining(int workRemaining)
public boolean isCanceled()
public void setTaskName(String name)
public void beginTask(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)
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.