Changeset 2444 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-11-13T11:34:34+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r2433 r2444 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; … … 67 67 68 68 /** 69 * Updates the data for forthe {@see OsmPrimitive}s with id <code>id</code>69 * Updates the data for the {@see OsmPrimitive}s with id <code>id</code> 70 70 * with the data currently kept on the server. 71 71 * 72 * @param id the id of a primitive in the {@see DataSet} of the current edit lay ser72 * @param id the id of a primitive in the {@see DataSet} of the current edit layer 73 73 * @exception IllegalStateException thrown if there is no primitive with <code>id</code> in 74 74 * the current dataset … … 89 89 */ 90 90 public UpdateSelectionAction() { 91 super(tr("Update selection s"),91 super(tr("Update selection"), 92 92 "updateselection", 93 93 tr("Updates the currently selected objects from the server (re-downloads data)"), … … 124 124 JOptionPane.showMessageDialog( 125 125 Main.parent, 126 tr("There are no selected primitives to update."),126 tr("There are no selected objects to update."), 127 127 tr("Selection empty"), 128 128 JOptionPane.INFORMATION_MESSAGE … … 145 145 146 146 public UpdatePrimitivesTask(Collection<? extends OsmPrimitive> toUpdate) { 147 super( "Update primitives", false /* don't ignore exception*/);147 super(tr("Update objects"), false /* don't ignore exception*/); 148 148 canceled = false; 149 149 this.toUpdate = toUpdate; … … 168 168 if (ds != null) { 169 169 Main.map.mapView.getEditLayer().mergeFrom(ds); 170 Main.map.mapView.getEditLayer().onPostDownloadFromServer(); 170 171 } 171 172 } … … 215 216 DataSetMerger merger = new DataSetMerger(ds, theirDataSet); 216 217 merger.merge(); 217 // a way sloaded with MultiFetch may be incomplete because at least one of its218 // a way loaded with MultiFetch may be incomplete because at least one of its 218 219 // nodes isn't present in the local data set. We therefore fully load all 219 220 // incomplete ways.
Note:
See TracChangeset
for help on using the changeset viewer.