source: josm/trunk/src/org/openstreetmap/josm/gui/progress/NullProgressMonitor.java@ 2319

Last change on this file since 2319 was 2319, checked in by Gubaer, 14 years ago

fixed #3725: JOSM doesn't provide indication during upload that the server is sending 410 Gone errors
Progress dialog now includes a small log window for use cases like this. Use appendLogMessage() on the progress monitor.

  • Property svn:mime-type set to text/plain
File size: 1.5 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.progress;
3
4
5public class NullProgressMonitor implements ProgressMonitor {
6
7 public static final ProgressMonitor INSTANCE = new NullProgressMonitor();
8
9 private NullProgressMonitor() {
10
11 }
12
13 public void addCancelListener(CancelListener listener) {
14 }
15
16 public void beginTask(String title) {
17 }
18
19 public void beginTask(String title, int ticks) {
20 }
21
22 public void cancel() {
23 }
24
25 public ProgressMonitor createSubTaskMonitor(int ticks, boolean internal) {
26 return INSTANCE;
27 }
28
29 public void finishTask() {
30 }
31
32 public String getErrorMessage() {
33 return null;
34 }
35
36 public int getTicks() {
37 return 0;
38 }
39
40 public void indeterminateSubTask(String title) {
41 }
42
43 public void invalidate() {
44 }
45
46 public boolean isCancelled() {
47 return false;
48 }
49
50 public void removeCancelListener(CancelListener listener) {
51 }
52
53 public void setCustomText(String text) {
54 }
55
56 public void setErrorMessage(String message) {
57 }
58
59 public void setExtraText(String text) {
60 }
61
62 public void appendLogMessage(String message) {
63 }
64
65 public void setSilent(boolean value) {
66 }
67
68 public void setTicks(int ticks) {
69 }
70
71 public void setTicksCount(int ticks) {
72 }
73
74 public void subTask(String title) {
75 }
76
77 public void worked(int ticks) {
78 }
79
80 public int getTicksCount() {
81 // TODO Auto-generated method stub
82 return 0;
83 }
84}
Note: See TracBrowser for help on using the repository browser.