TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.drivers.ui.internal
Class SWTViewer.ViewerProgressMonitor

java.lang.Object
  extended by org.eclipse.tptp.platform.report.tools.internal.SimpleProgressMonitor
      extended by org.eclipse.tptp.platform.report.drivers.ui.internal.SWTViewer.ViewerProgressMonitor
All Implemented Interfaces:
IDProgressMonitor
Enclosing class:
SWTViewer

public static class SWTViewer.ViewerProgressMonitor
extends SimpleProgressMonitor

This class provides the datas to manage a mouse event on a ITCell in the SWTViewer. This event is passed in the third parameter of MouseEventHandler's doMethod

See Also:
TAbstractCell, SWTViewer.MouseEventHandler

Field Summary
 
Fields inherited from interface org.eclipse.tptp.platform.report.tools.internal.IDProgressMonitor
UNKNOWN
 
Constructor Summary
SWTViewer.ViewerProgressMonitor(SWTViewer v)
           
 
Method Summary
 void beginTask(java.lang.String name, int total_works)
          Start a task identified with a name, total_works can be UNKNOWN
 void done()
          free any resource held by task, can be called more than once
 void setCanceled(boolean value)
          Request a cancel of current task.
 void worked(int work)
          advance current progress by work amount
 
Methods inherited from class org.eclipse.tptp.platform.report.tools.internal.SimpleProgressMonitor
getTaskName, getTotalWorks, getWorkCount, isCanceled, isInProgress, setTotalWorks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTViewer.ViewerProgressMonitor

public SWTViewer.ViewerProgressMonitor(SWTViewer v)
Method Detail

beginTask

public void beginTask(java.lang.String name,
                      int total_works)
Description copied from interface: IDProgressMonitor
Start a task identified with a name, total_works can be UNKNOWN

Specified by:
beginTask in interface IDProgressMonitor
Overrides:
beginTask in class SimpleProgressMonitor
See Also:
IDProgressMonitor.beginTask(java.lang.String, int)

done

public void done()
Description copied from interface: IDProgressMonitor
free any resource held by task, can be called more than once

Specified by:
done in interface IDProgressMonitor
Overrides:
done in class SimpleProgressMonitor
See Also:
IDProgressMonitor.done()

setCanceled

public void setCanceled(boolean value)
Description copied from interface: IDProgressMonitor
Request a cancel of current task. Task must take into account this request as soon as possible

Specified by:
setCanceled in interface IDProgressMonitor
Overrides:
setCanceled in class SimpleProgressMonitor
See Also:
IDProgressMonitor.setCanceled(boolean)

worked

public void worked(int work)
Description copied from interface: IDProgressMonitor
advance current progress by work amount

Specified by:
worked in interface IDProgressMonitor
Overrides:
worked in class SimpleProgressMonitor
See Also:
IDProgressMonitor.worked(int)

TPTP 4.5.0 Platform Project
Internal API Specification