Class RelayingProgressMonitor

java.lang.Object
com._1c.g5.v8.dt.internal.compare.RelayingProgressMonitor
All Implemented Interfaces:
IProgressMonitorContainer, org.eclipse.core.runtime.IProgressMonitor

public class RelayingProgressMonitor extends Object implements IProgressMonitorContainer, org.eclipse.core.runtime.IProgressMonitor
An implementation of a progress monitor that relays progress to a contained external progress monitor.
  • Field Summary

    Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor

    UNKNOWN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
    Adds the specified progress monitor working in the UI-less thread.
    void
    addProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.swt.widgets.Display display)
    Adds the specified progress monitor and display that should be used for asynchronous communication with that monitor to this container.
    void
    beginTask(String name, int totalWork)
     
    void
     
    void
    internalWorked(double work)
     
    boolean
     
    void
    removeProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
    Removes the specified progress monitor from the container.
    void
    setCanceled(boolean value)
     
    void
     
    void
     
    void
    worked(int work)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.core.runtime.IProgressMonitor

    clearBlocked, setBlocked, slice
  • Constructor Details

    • RelayingProgressMonitor

      public RelayingProgressMonitor()
  • Method Details

    • addProgressMonitor

      public void addProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Description copied from interface: IProgressMonitorContainer
      Adds the specified progress monitor working in the UI-less thread.
      Specified by:
      addProgressMonitor in interface IProgressMonitorContainer
      Parameters:
      progressMonitor - the progress monitor to be set as contained in this container
    • addProgressMonitor

      public void addProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.swt.widgets.Display display)
      Description copied from interface: IProgressMonitorContainer
      Adds the specified progress monitor and display that should be used for asynchronous communication with that monitor to this container.
      Specified by:
      addProgressMonitor in interface IProgressMonitorContainer
      Parameters:
      progressMonitor - the progress monitor to be set as contained in this container
      display - the display for asynchronous communication with the added progress monitor
    • beginTask

      public void beginTask(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
    • removeProgressMonitor

      public void removeProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Description copied from interface: IProgressMonitorContainer
      Removes the specified progress monitor from the container.
      Specified by:
      removeProgressMonitor in interface IProgressMonitorContainer
      Parameters:
      progressMonitor - the progress monitor to remove
    • setCanceled

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

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

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