Changeset 2613 in josm for trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
- Timestamp:
- 11.12.2009 23:07:59 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
r2512 r2613 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;6 6 7 7 import java.awt.event.ActionEvent; … … 16 16 import org.openstreetmap.josm.Main; 17 17 import org.openstreetmap.josm.data.osm.Changeset; 18 import org.openstreetmap.josm.data.osm.ChangesetCache; 18 19 import org.openstreetmap.josm.data.osm.UserInfo; 19 20 import org.openstreetmap.josm.gui.ExceptionDialogUtil; … … 49 50 } 50 51 51 protected void onPostDownloadOpenChangesets(DownloadOpenChangesetsTask task) { 52 if (task.isCancelled() || task.getLastException() != null) return; 53 54 List<Changeset> openChangesets = task.getChangesets(); 52 protected void onPostDownloadOpenChangesets() { 53 List<Changeset> openChangesets = ChangesetCache.getInstance().getOpenChangesets(); 55 54 if (openChangesets.isEmpty()) { 56 55 JOptionPane.showMessageDialog( … … 105 104 ExceptionDialogUtil.explainException(lastException); 106 105 } 107 onPostDownloadOpenChangesets(DownloadOpenChangesetsTask.this); 106 ChangesetCache.getInstance().update(changesets); 107 if (!cancelled && lastException == null) { 108 onPostDownloadOpenChangesets(); 109 } 108 110 } 109 111 } … … 146 148 } 147 149 148 public List<Changeset> getChangesets() {149 return changesets;150 }151 152 150 public Exception getLastException() { 153 151 return lastException;
Note: See TracChangeset
for help on using the changeset viewer.
