Class PrintStreamProgressMonitor

  • All Implemented Interfaces:
    IHMProgressMonitor

    public class PrintStreamProgressMonitor
    extends Object
    implements IHMProgressMonitor
    A progress monitor for printstream based applications, i.e. console or commandline.

    This implements both IHMProgressMonitor and IProgressMonitor in order to be used also in the part of the code that needs to stay clean of rcp code.

    Author:
    Andrea Antonello (www.hydrologis.com)
    • Field Detail

      • cancelled

        protected boolean cancelled
      • taskName

        protected String taskName
      • totalWork

        protected int totalWork
      • runningWork

        protected int runningWork
      • lastPercentage

        protected int lastPercentage
    • Constructor Detail

      • PrintStreamProgressMonitor

        public PrintStreamProgressMonitor()
      • PrintStreamProgressMonitor

        public PrintStreamProgressMonitor​(PrintStream outStream,
                                          PrintStream errorStream)