PageRenderTime 24ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/installer/ConsoleProgress.java

#
Java | 39 lines | 18 code | 6 blank | 15 comment | 0 complexity | ab1d5bd4cc4ec6f6f1390fb44102e5e0 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /*
  2. * ConsoleProgress.java
  3. *
  4. * Originally written by Slava Pestov for the jEdit installer project. This work
  5. * has been placed into the public domain. You may use this work in any way and
  6. * for any purpose you wish.
  7. *
  8. * THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
  9. * IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES
  10. * _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION,
  11. * OR REDISTRIBUTION OF THIS SOFTWARE.
  12. */
  13. package installer;
  14. /*
  15. * Displays install progress when running in text-only mode.
  16. */
  17. public class ConsoleProgress implements Progress
  18. {
  19. public void setMaximum(int max)
  20. {
  21. }
  22. public void advance(int value)
  23. {
  24. }
  25. public void done()
  26. {
  27. System.out.println("*** Installation complete");
  28. }
  29. public void error(String message)
  30. {
  31. System.err.println("*** An error occurred: " + message);
  32. }
  33. }