org.eclipse.emf.common.util
Class BasicMonitor.EclipseDelegating

java.lang.Object
  extended by org.eclipse.emf.common.util.BasicMonitor.EclipseDelegating
All Implemented Interfaces:
Monitor
Enclosing class:
BasicMonitor

private static class BasicMonitor.EclipseDelegating
extends java.lang.Object
implements Monitor

A simple monitor that delegates to another Eclipse monitor.


Field Summary
protected  org.eclipse.core.runtime.IProgressMonitor progressMonitor
           
protected  org.eclipse.core.runtime.IProgressMonitorWithBlocking progressMonitorWithBlocking
           
 
Fields inherited from interface org.eclipse.emf.common.util.Monitor
UNKNOWN
 
Constructor Summary
BasicMonitor.EclipseDelegating(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
           
BasicMonitor.EclipseDelegating(org.eclipse.core.runtime.IProgressMonitorWithBlocking progressMonitorWithBlocking)
           
 
Method Summary
 void beginTask(java.lang.String name, int totalWork)
          Called once per instance to indicate the name of the task and its expected duration.
 void clearBlocked()
          Clears the reason for the activity being blocked.
 void done()
          Called to indicate the task is complete.
 void internalWorked(double work)
          Called by subprogress monitors to do fractional work.
 boolean isCanceled()
          Returns whether the activity has been canceled.
 void setBlocked(Diagnostic reason)
          Sets the reason for the activity being blocked.
 void setCanceled(boolean value)
          Sets whether the active should be canceled.
 void setTaskName(java.lang.String name)
          Update the task name.
 void subTask(java.lang.String name)
          Sets the current subtask of the overall task.
 void worked(int work)
          Called to indicate the amount or progress on the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progressMonitor

protected org.eclipse.core.runtime.IProgressMonitor progressMonitor

progressMonitorWithBlocking

protected org.eclipse.core.runtime.IProgressMonitorWithBlocking progressMonitorWithBlocking
Constructor Detail

BasicMonitor.EclipseDelegating

public BasicMonitor.EclipseDelegating(org.eclipse.core.runtime.IProgressMonitor progressMonitor)

BasicMonitor.EclipseDelegating

public BasicMonitor.EclipseDelegating(org.eclipse.core.runtime.IProgressMonitorWithBlocking progressMonitorWithBlocking)
Method Detail

isCanceled

public boolean isCanceled()
Description copied from interface: Monitor
Returns whether the activity has been canceled.

Specified by:
isCanceled in interface Monitor

setCanceled

public void setCanceled(boolean value)
Description copied from interface: Monitor
Sets whether the active should be canceled.

Specified by:
setCanceled in interface Monitor

setBlocked

public void setBlocked(Diagnostic reason)
Description copied from interface: Monitor
Sets the reason for the activity being blocked.

Specified by:
setBlocked in interface Monitor

clearBlocked

public void clearBlocked()
Description copied from interface: Monitor
Clears the reason for the activity being blocked.

Specified by:
clearBlocked in interface Monitor

beginTask

public void beginTask(java.lang.String name,
                      int totalWork)
Description copied from interface: Monitor
Called once per instance to indicate the name of the task and its expected duration.

Specified by:
beginTask in interface Monitor

setTaskName

public void setTaskName(java.lang.String name)
Description copied from interface: Monitor
Update the task name.

Specified by:
setTaskName in interface Monitor

subTask

public void subTask(java.lang.String name)
Description copied from interface: Monitor
Sets the current subtask of the overall task.

Specified by:
subTask in interface Monitor

worked

public void worked(int work)
Description copied from interface: Monitor
Called to indicate the amount or progress on the task.

Specified by:
worked in interface Monitor

internalWorked

public void internalWorked(double work)
Description copied from interface: Monitor
Called by subprogress monitors to do fractional work.

Specified by:
internalWorked in interface Monitor

done

public void done()
Description copied from interface: Monitor
Called to indicate the task is complete.

Specified by:
done in interface Monitor


Copyright © 2001-2010 Eclipse Foundation. All Rights Reserved.