Class ProgressMonitorAdapter

    • Constructor Detail

      • ProgressMonitorAdapter

        public ProgressMonitorAdapter​(ProgressStatus status)
        Constructor
        Parameters:
        status - status
    • Method Detail

      • toProgressMonitor

        @OpenApi
        public static org.eclipse.core.runtime.IProgressMonitor toProgressMonitor​(@CheckForNull
                                                                                  ProgressStatus status)
        Maps ProgressStatus to IProgressMonitor.
        Parameters:
        status - status to map.
        Returns:
        mapped monitor.
      • toProgressStatus

        @OpenApi
        public static ProgressStatus toProgressStatus​(@CheckForNull
                                                      org.eclipse.core.runtime.IProgressMonitor monitor)
        Maps IProgressMonitor to ProgressStatus.
        Parameters:
        monitor - monitor to map.
        Returns:
        mapped status.
      • beginTask

        public void beginTask​(java.lang.String s,
                              int max)
        Specified by:
        beginTask in interface org.eclipse.core.runtime.IProgressMonitor
      • done

        public void done()
        Specified by:
        done 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 b)
        Specified by:
        setCanceled in interface org.eclipse.core.runtime.IProgressMonitor
      • setTaskName

        public void setTaskName​(java.lang.String s)
        Specified by:
        setTaskName in interface org.eclipse.core.runtime.IProgressMonitor
      • subTask

        public void subTask​(java.lang.String s)
        Specified by:
        subTask in interface org.eclipse.core.runtime.IProgressMonitor
      • internalWorked

        public void internalWorked​(double v)
        Specified by:
        internalWorked in interface org.eclipse.core.runtime.IProgressMonitor
      • worked

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