Eclipse Platform
2.1

org.eclipse.core.runtime
Class ProgressMonitorWrapper

java.lang.Object
  |
  +--org.eclipse.core.runtime.ProgressMonitorWrapper
All Implemented Interfaces:
IProgressMonitor
Direct Known Subclasses:
SubProgressMonitor

public abstract class ProgressMonitorWrapper
extends Object
implements IProgressMonitor

An abstract wrapper around a progress monitor which, unless overridden, forwards IProgressMonitor methods to the wrapped progress monitor.

Clients may subclass.


Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN
 
Constructor Summary
protected ProgressMonitorWrapper(IProgressMonitor monitor)
          Creates a new wrapper around the given monitor.
 
Method Summary
 void beginTask(String name, int totalWork)
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 void done()
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 IProgressMonitor getWrappedProgressMonitor()
          Returns the wrapped progress monitor.
 void internalWorked(double work)
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 boolean isCanceled()
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 void setCanceled(boolean b)
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 void setTaskName(String name)
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 void subTask(String name)
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 void worked(int work)
          This implementation of a IProgressMonitor method forwards to the wrapped progress monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressMonitorWrapper

protected ProgressMonitorWrapper(IProgressMonitor monitor)
Creates a new wrapper around the given monitor.
Parameters:
monitor - the progress monitor to forward to
Method Detail

beginTask

public void beginTask(String name,
                      int totalWork)
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
beginTask in interface IProgressMonitor
See Also:
IProgressMonitor.beginTask(java.lang.String, int)

done

public void done()
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
done in interface IProgressMonitor
See Also:
IProgressMonitor.done()

getWrappedProgressMonitor

public IProgressMonitor getWrappedProgressMonitor()
Returns the wrapped progress monitor.
Returns:
the wrapped progress monitor

internalWorked

public void internalWorked(double work)
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
internalWorked in interface IProgressMonitor
See Also:
IProgressMonitor.internalWorked(double)

isCanceled

public boolean isCanceled()
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
isCanceled in interface IProgressMonitor
See Also:
IProgressMonitor.isCanceled()

setCanceled

public void setCanceled(boolean b)
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
setCanceled in interface IProgressMonitor
See Also:
IProgressMonitor.setCanceled(boolean)

setTaskName

public void setTaskName(String name)
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
setTaskName in interface IProgressMonitor
See Also:
IProgressMonitor.setTaskName(java.lang.String)

subTask

public void subTask(String name)
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
subTask in interface IProgressMonitor
See Also:
IProgressMonitor.subTask(java.lang.String)

worked

public void worked(int work)
This implementation of a IProgressMonitor method forwards to the wrapped progress monitor. Clients may override this method to do additional processing.
Specified by:
worked in interface IProgressMonitor
See Also:
IProgressMonitor.worked(int)

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.