/jEdit/tags/jedit-4-5-pre1/installer/ConsoleProgress.java
# · Java · 44 lines · 22 code · 7 blank · 15 comment · 0 complexity · 5dfe4099387d010273c940ac95e584f5 MD5 · raw file
- /*
- * ConsoleProgress.java
- *
- * Originally written by Slava Pestov for the jEdit installer project. This work
- * has been placed into the public domain. You may use this work in any way and
- * for any purpose you wish.
- *
- * THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
- * IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES
- * _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION,
- * OR REDISTRIBUTION OF THIS SOFTWARE.
- */
- package installer;
- /*
- * Displays install progress when running in text-only mode.
- */
- public class ConsoleProgress implements Progress
- {
- public void setMaximum(int max)
- {
- }
- public void advance(int value)
- {
- }
- public void done()
- {
- System.out.println("*** Installation complete");
- }
- public void message(String message)
- {
- System.out.println(message);
- }
- public void error(String message)
- {
- System.err.println("*** An error occurred: " + message);
- }
- }