PageRenderTime 200ms CodeModel.GetById 196ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-5-pre1/installer/ConsoleProgress.java

#
Java | 44 lines | 22 code | 7 blank | 15 comment | 0 complexity | 5dfe4099387d010273c940ac95e584f5 MD5 | raw file
 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
14package installer;
15
16/*
17 * Displays install progress when running in text-only mode.
18 */
19public class ConsoleProgress implements Progress
20{
21
22	public void setMaximum(int max)
23	{
24	}
25
26	public void advance(int value)
27	{
28	}
29
30	public void done()
31	{
32		System.out.println("*** Installation complete");
33	}
34
35	public void message(String message)
36	{
37		System.out.println(message);
38	}
39
40	public void error(String message)
41	{
42		System.err.println("*** An error occurred: " + message);
43	}
44}