Class BasicMonitor.Delegating

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

public static class BasicMonitor.Delegating extends Object implements Monitor
A simple monitor that delegates to another monitor.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Monitor
     

    Fields inherited from interface org.eclipse.emf.common.util.Monitor

    UNKNOWN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beginTask(String name, int totalWork)
    Called once per instance to indicate the name of the task and its expected duration.
    void
    Clears the reason for the activity being blocked.
    void
    Called to indicate the task is complete.
    void
    internalWorked(double work)
    Called by subprogress monitors to do fractional work.
    boolean
    Returns whether the activity has been canceled.
    void
    Sets the reason for the activity being blocked.
    void
    setCanceled(boolean value)
    Sets whether the active should be canceled.
    void
    Update the task name.
    void
    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 Details

    • monitor

      protected Monitor monitor
  • Constructor Details

    • Delegating

      public Delegating(Monitor monitor)
  • Method Details

    • 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(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(String name)
      Description copied from interface: Monitor
      Update the task name.
      Specified by:
      setTaskName in interface Monitor
    • subTask

      public void subTask(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