Class LoggingProgressMonitor

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

    public class LoggingProgressMonitor
    extends 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.
    • Constructor Detail

      • LoggingProgressMonitor

        public LoggingProgressMonitor​(MavenLogger logger)
    • Method Detail

      • suppressOutputOf

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

        public final void beginTask​(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​(String name)
        Specified by:
        setTaskName in interface org.eclipse.core.runtime.IProgressMonitor
      • subTask

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