Revision 2631

View differences:

org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/task/impl/BaseTaskStatus.java
200 200

  
201 201
    @Override
202 202
    public String getLabel() {
203
        if (this.values.message == null) {
204
            return this.getProgressLabel();
205
        } else {
206
            return this.values.message + this.getProgressLabel();
207
        }
208
    }
209
    
210
    @Override
211
    public String getProgressLabel() {
203 212
        String progress;
204 213

  
205 214
        if (this.values.maxValue == this.values.minValue) {
......
213 222
        } else {
214 223
            progress = " (" + (this.values.curValue - this.values.minValue) + " / " + (this.values.maxValue - this.values.minValue) + ")";
215 224
        }
216
        if (this.values.message == null) {
217
            return progress;
218
        } else {
219
            return this.values.message + progress;
220
        }
225
        return progress;
221 226
    }
222 227

  
223 228
    public String getMessage() {
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/task/TaskStatus.java
64 64
     */
65 65
    public String getLabel();
66 66
    
67
    public String getProgressLabel();
68
    
67 69
    public String getMessage();
68 70
    /**
69 71
     * Return true if the task has cancelled by the

Also available in: Unified diff