|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.console.lib.egui.editor.CollectProgressDialog
public class CollectProgressDialog
Progress monitor while collecting results
Field Summary | |
---|---|
protected long |
bladesize
|
protected boolean |
canceled
|
protected ClifAppFacade |
clifApp
|
protected boolean |
completed
|
protected long |
fullsize
|
protected org.eclipse.core.runtime.IProgressMonitor |
monitor
|
protected long |
progress
|
Constructor Summary | |
---|---|
CollectProgressDialog(org.eclipse.swt.widgets.Shell shell,
ClifAppFacade clifApp,
java.lang.String[] bladesId)
Constructor |
Method Summary | |
---|---|
void |
bladeCollectStart(java.lang.String bladeId,
long size)
Called before collecting test results from a blade. |
void |
collectStart(java.lang.String testId,
long size)
Called at the collect beginning. |
void |
done()
Called when the full collect is complete. |
void |
go()
Run the ProgressMonitorDialog |
boolean |
isCanceled()
Called an arbitrarily number of times at arbitrary moments during a collect to ensure the collect must go on or be canceled. |
boolean |
isCanceled(java.lang.String bladeId)
Called an arbitrarily number of times at arbitrary moments during a collect to ensure the collect must go on or be canceled for the given blade. |
void |
progress(java.lang.String bladeId,
long done)
Called an arbitrary number of times when collecting test results from a blade to give current progress |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.core.runtime.IProgressMonitor monitor
protected boolean completed
protected boolean canceled
protected long fullsize
protected long bladesize
protected long progress
protected ClifAppFacade clifApp
Constructor Detail |
---|
public CollectProgressDialog(org.eclipse.swt.widgets.Shell shell, ClifAppFacade clifApp, java.lang.String[] bladesId)
shell
- parent shellclifApp
- clifApp used by this testbladesId
- blades id to collectMethod Detail |
---|
public void go()
public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.InterruptedException
run
in interface org.eclipse.jface.operation.IRunnableWithProgress
java.lang.InterruptedException
public void collectStart(java.lang.String testId, long size)
CollectListener
collectStart
in interface CollectListener
testId
- the identifier of the test to be collectedsize
- the total number of bytes to be collectedpublic void bladeCollectStart(java.lang.String bladeId, long size)
CollectListener
bladeCollectStart
in interface CollectListener
bladeId
- the identifier of the blade about to be collectedsize
- the total number of bytes to collect from the given bladepublic void progress(java.lang.String bladeId, long done)
CollectListener
progress
in interface CollectListener
bladeId
- the identifier of the blade test results are being collected fromdone
- number of bytes already collected (cannot decrease, nor be
greater then the size given in the preliminary bladeCollectStart call)public void done()
CollectListener
done
in interface CollectListener
public boolean isCanceled()
CollectListener
isCanceled
in interface CollectListener
public boolean isCanceled(java.lang.String bladeId)
CollectListener
isCanceled
in interface CollectListener
bladeId
- the identifier of the considered blade
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |