public class ProgressMonitor extends Object implements IFeedBack
Modifier and Type | Field and Description |
---|---|
boolean |
isBatch
Flags.
|
boolean |
isVerbose
Flags.
|
NULL_MONITOR
Constructor and Description |
---|
ProgressMonitor(IProgressReport owner)
Constructor at first level.
|
Modifier and Type | Method and Description |
---|---|
void |
beginTask(String text,
int count)
Begins work.
|
void |
done()
Completed work.
|
IFeedBack |
getSubMonitor()
Gets a sub-monitor of one work unit in parent.
|
IFeedBack |
getSubMonitor(int count)
Gets a sub-monitor that takes a certain amount of work units in parent.
|
boolean |
isBatch()
Flag indicating this is running in batch mode and no GUI is available.
|
boolean |
isCanceled()
Checks if canceled.
|
boolean |
isEclipse()
Check to see if this is Eclipse or NetPhantom.
|
boolean |
isVerbose()
Testing for verbose output to System.out, used in NetPhantom Editor, but not inside Eclipse.
|
void |
setTaskName(String name)
Sets the task name.
|
void |
setTaskName(String name,
boolean outputIfVerbose)
Sets the task name.
|
void |
subTask(String name)
Sets the subtask name.
|
void |
worked()
A work unit is done.
|
void |
worked(int count)
Some work units are done.
|
void |
worked(int count,
String text)
Some work units are done, sets text for next operation.
|
void |
worked(String text)
A work unit is done, sets text for next operation.
|
public ProgressMonitor(IProgressReport owner)
public boolean isEclipse()
public boolean isVerbose()
public boolean isBatch()
public void setTaskName(String name)
setTaskName
in interface IProgressMonitor
public void setTaskName(String name, boolean outputIfVerbose)
public void subTask(String name)
subTask
in interface IProgressMonitor
public boolean isCanceled()
isCanceled
in interface ICancel
public void beginTask(String text, int count)
beginTask
in interface IProgressMonitor
public void worked()
worked
in interface IProgressMonitor
public void worked(String text)
worked
in interface IProgressMonitor
public void worked(int count)
worked
in interface IProgressMonitor
public void worked(int count, String text)
worked
in interface IProgressMonitor
public IFeedBack getSubMonitor()
getSubMonitor
in interface IFeedBack
getSubMonitor
in interface IProgressMonitor
public IFeedBack getSubMonitor(int count)
getSubMonitor
in interface IFeedBack
getSubMonitor
in interface IProgressMonitor
public void done()
done
in interface IProgressMonitor
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.