Class LoggingProgressMonitor

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IProgressMonitor
    Direct Known Subclasses:
    DuplicateFilteringLoggingProgressMonitor

    public class LoggingProgressMonitor
    extends java.lang.Object
    implements org.eclipse.core.runtime.IProgressMonitor
    Special IProgressMonitor instance which writes the task names it is given via the IProgressMonitor interface to the log.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private MavenLogger logger  
      • Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor

        UNKNOWN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beginTask​(java.lang.String name, int totalWork)  
      void done()  
      void internalWorked​(double work)  
      boolean isCanceled()  
      void setCanceled​(boolean value)  
      void setTaskName​(java.lang.String name)  
      void subTask​(java.lang.String name)  
      protected boolean suppressOutputOf​(java.lang.String text)  
      void worked​(int work)  
      private void writeToLog​(java.lang.String text)  
      • 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 Detail

      • LoggingProgressMonitor

        public LoggingProgressMonitor​(MavenLogger logger)
    • Method Detail

      • writeToLog

        private void writeToLog​(java.lang.String text)
      • suppressOutputOf

        protected boolean suppressOutputOf​(java.lang.String text)
        Parameters:
        text - The candidate text for logging. Never null.
      • beginTask

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

        public final void done()
        Specified by:
        done in interface org.eclipse.core.runtime.IProgressMonitor
      • internalWorked

        public final void internalWorked​(double work)
        Specified by:
        internalWorked in interface org.eclipse.core.runtime.IProgressMonitor
      • isCanceled

        public final boolean isCanceled()
        Specified by:
        isCanceled in interface org.eclipse.core.runtime.IProgressMonitor
      • setCanceled

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

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

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

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