Changeset 24882 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-12-26T20:03:49+01:00 (14 years ago)
Author:
upliner
Message:

use reverter icon for revert commands

Location:
applications/editors/josm/plugins/reverter/src/reverter
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetAction.java

    r23192 r24882  
    1212import org.openstreetmap.josm.actions.JosmAction;
    1313import org.openstreetmap.josm.command.Command;
    14 import org.openstreetmap.josm.command.SequenceCommand;
    1514import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    1615import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;
     
    1817import org.openstreetmap.josm.io.OsmTransferException;
    1918import org.openstreetmap.josm.tools.Shortcut;
     19
    2020import reverter.ChangesetReverter.RevertType;
    2121
     
    9696                if (!checkAndDownloadMissing()) return;
    9797                List<Command> cmds = rev.getCommands();
    98                 Command cmd = new SequenceCommand(tr(revertType == RevertType.FULL ? "Revert changeset #{0}" :
     98                Command cmd = new RevertChangesetCommand(tr(revertType == RevertType.FULL ? "Revert changeset #{0}" :
    9999                        "Partially revert changeset #{0}",changesetId),cmds);
    100100                Main.main.undoRedo.add(cmd);
Note: See TracChangeset for help on using the changeset viewer.