Changeset 4748 in josm
- Timestamp:
- 2011-12-29T21:17:15+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java
r3313 r4748 150 150 tr("Click to check whether objects in your local dataset are deleted on the server"), 151 151 null /* no specific help topic */ 152 ),153 new ButtonSpec(154 tr("Ignore"),155 ImageProvider.get("cancel"),156 tr("Click to abort and to resume editing"),157 null /* no specific help topic */158 ),152 ), 153 new ButtonSpec( 154 tr("Ignore"), 155 ImageProvider.get("cancel"), 156 tr("Click to abort and to resume editing"), 157 null /* no specific help topic */ 158 ), 159 159 }; 160 160 161 161 String message = "<html>" 162 + trn("There is {0} object in your local dataset which "163 + "might be deleted on the server. If you later try to delete or "164 + "update this the server is likely to report a conflict.",165 "There are {0} objects in your local dataset which "166 + "might be deleted on the server. If you later try to delete or "167 + "update them the server is likely to report a conflict.", potentiallyDeleted.size(), potentiallyDeleted.size())168 + "<br>"169 + trn("Click <strong>{0}</strong> to check the state of this object on the server.",170 "Click <strong>{0}</strong> to check the state of these objects on the server.",171 potentiallyDeleted.size(),172 options[0].text) + "<br>"173 + tr("Click <strong>{0}</strong> to ignore." + "</html>", options[1].text);162 + trn("There is {0} object in your local dataset which " 163 + "might be deleted on the server. If you later try to delete or " 164 + "update this the server is likely to report a conflict.", 165 "There are {0} objects in your local dataset which " 166 + "might be deleted on the server. If you later try to delete or " 167 + "update them the server is likely to report a conflict.", potentiallyDeleted.size(), potentiallyDeleted.size()) 168 + "<br>" 169 + trn("Click <strong>{0}</strong> to check the state of this object on the server.", 170 "Click <strong>{0}</strong> to check the state of these objects on the server.", 171 potentiallyDeleted.size(), 172 options[0].text) + "<br>" 173 + tr("Click <strong>{0}</strong> to ignore." + "</html>", options[1].text); 174 174 175 175 int ret = HelpAwareOptionPane.showOptionDialog( … … 182 182 options[0], 183 183 ht("/Action/UpdateData#SyncPotentiallyDeletedObjects") 184 );184 ); 185 185 if (ret != 0 /* OK */) 186 186 return; … … 265 265 DataSet ds = ((DownloadOsmTask) task).getDownloadedData(); 266 266 if (ds != null) { 267 myPrimitives.removeAll(ds.allPrimitives()); 267 // myPrimitives.removeAll(ds.allPrimitives()) will do the same job but much slower 268 for (OsmPrimitive primitive: ds.allPrimitives()) { 269 myPrimitives.remove(primitive); 270 } 268 271 } 269 272 }
Note:
See TracChangeset
for help on using the changeset viewer.