Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/progress/AbstractProgressMonitor.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/AbstractProgressMonitor.java
r8377 r8510 44 44 45 45 protected abstract void doBeginTask(); 46 46 47 protected abstract void doFinishTask(); 48 47 49 protected abstract void doSetIntermediate(boolean value); 50 48 51 protected abstract void doSetTitle(String title); 52 49 53 protected abstract void doSetCustomText(String title); 50 54 … … 174 178 } 175 179 176 if (newTitle == null ?shownTitle != null:!newTitle.equals(shownTitle)) {180 if (newTitle == null ? shownTitle != null : !newTitle.equals(shownTitle)) { 177 181 shownTitle = newTitle; 178 182 doSetTitle(shownTitle); 179 183 } 180 184 181 if (customText == null ?shownCustomText != null:!customText.equals(shownCustomText)) {185 if (customText == null ? shownCustomText != null : !customText.equals(shownCustomText)) { 182 186 shownCustomText = customText; 183 187 doSetCustomText(shownCustomText); … … 241 245 } 242 246 checkState(State.IN_TASK, State.IN_SUBTASK); 243 updateProgress(ticksCount == 0 ?0:(ticks + childProgress * childTicks) / ticksCount);247 updateProgress(ticksCount == 0 ? 0 : (ticks + childProgress * childTicks) / ticksCount); 244 248 } 245 249
Note:
See TracChangeset
for help on using the changeset viewer.