cz.muni.fi.rtc.teacherWorkbench.importer
Class LogProgressMonitor

java.lang.Object
  extended by cz.muni.fi.rtc.teacherWorkbench.importer.LogProgressMonitor
All Implemented Interfaces:
org.eclipse.core.runtime.IProgressMonitor

public class LogProgressMonitor
extends java.lang.Object
implements org.eclipse.core.runtime.IProgressMonitor

Progress monitor writing the events to the log on the info level.

Author:
honza

Field Summary
 
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN
 
Method Summary
 void beginTask(java.lang.String name, int totalWork)
           
 void done()
           
static LogProgressMonitor getInstance()
          Return singleton instance
 void internalWorked(double work)
           
 boolean isCanceled()
           
 void setCanceled(boolean value)
           
 void setTaskName(java.lang.String name)
           
 void subTask(java.lang.String name)
           
 void worked(int work)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogProgressMonitor getInstance()
Return singleton instance

Returns:
Singleton instance

beginTask

public void beginTask(java.lang.String name,
                      int totalWork)
Specified by:
beginTask in interface org.eclipse.core.runtime.IProgressMonitor

done

public void done()
Specified by:
done in interface org.eclipse.core.runtime.IProgressMonitor

internalWorked

public void internalWorked(double work)
Specified by:
internalWorked in interface org.eclipse.core.runtime.IProgressMonitor

isCanceled

public boolean isCanceled()
Specified by:
isCanceled in interface org.eclipse.core.runtime.IProgressMonitor

setCanceled

public void setCanceled(boolean value)
Specified by:
setCanceled in interface org.eclipse.core.runtime.IProgressMonitor

setTaskName

public void setTaskName(java.lang.String name)
Specified by:
setTaskName in interface org.eclipse.core.runtime.IProgressMonitor

subTask

public void subTask(java.lang.String name)
Specified by:
subTask in interface org.eclipse.core.runtime.IProgressMonitor

worked

public void worked(int work)
Specified by:
worked in interface org.eclipse.core.runtime.IProgressMonitor