Ignore:
Timestamp:
2009-11-13T11:34:34+01:00 (14 years ago)
Author:
Gubaer
Message:

fixed #3908: Exception when updating a way
fixed a few I18n issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java

    r2433 r2444  
    22package org.openstreetmap.josm.actions;
    33
     4import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    66
    77import java.awt.event.ActionEvent;
     
    6767
    6868    /**
    69      * Updates the data for for the {@see OsmPrimitive}s with id <code>id</code>
     69     * Updates the data for the {@see OsmPrimitive}s with id <code>id</code>
    7070     * with the data currently kept on the server.
    7171     *
    72      * @param id  the id of a primitive in the {@see DataSet} of the current edit layser
     72     * @param id  the id of a primitive in the {@see DataSet} of the current edit layer
    7373     * @exception IllegalStateException thrown if there is no primitive with <code>id</code> in
    7474     *   the current dataset
     
    8989     */
    9090    public UpdateSelectionAction() {
    91         super(tr("Update selections"),
     91        super(tr("Update selection"),
    9292                "updateselection",
    9393                tr("Updates the currently selected objects from the server (re-downloads data)"),
     
    124124            JOptionPane.showMessageDialog(
    125125                    Main.parent,
    126                     tr("There are no selected primitives to update."),
     126                    tr("There are no selected objects to update."),
    127127                    tr("Selection empty"),
    128128                    JOptionPane.INFORMATION_MESSAGE
     
    145145
    146146        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*/);
    148148            canceled = false;
    149149            this.toUpdate = toUpdate;
     
    168168            if (ds != null) {
    169169                Main.map.mapView.getEditLayer().mergeFrom(ds);
     170                Main.map.mapView.getEditLayer().onPostDownloadFromServer();
    170171            }
    171172        }
     
    215216                DataSetMerger merger = new DataSetMerger(ds, theirDataSet);
    216217                merger.merge();
    217                 // a ways loaded with MultiFetch may be incomplete because at least one of its
     218                // a way loaded with MultiFetch may be incomplete because at least one of its
    218219                // nodes isn't present in the local data set. We therefore fully load all
    219220                // incomplete ways.
Note: See TracChangeset for help on using the changeset viewer.