Changeset 22291 in osm for applications/editors/josm/plugins/undelete/src
- Timestamp:
- 2010-07-12T23:20:07+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/Undelete.java
r21126 r22291 2 2 // Derived from DownloadPrimitiveAction by Matthias Julius 3 3 4 package Undelete;4 package org.openstreetmap.josm.plugins.undelete; 5 5 6 6 import java.awt.GridBagConstraints; … … 8 8 import java.awt.event.ActionEvent; 9 9 import java.awt.event.KeyEvent; 10 import java.util.Collection;11 import java.util.Enumeration;12 import java.util.Hashtable;13 import java.util.LinkedList;14 10 import java.util.ArrayList; 15 11 import java.util.List; … … 18 14 import javax.swing.JLabel; 19 15 import javax.swing.JMenuItem; 20 import javax.swing.JOptionPane;21 16 import javax.swing.JPanel; 22 17 import javax.swing.KeyStroke; … … 27 22 import org.openstreetmap.josm.actions.JosmAction; 28 23 import org.openstreetmap.josm.actions.downloadtasks.DownloadPrimitiveTask; 29 import org.openstreetmap.josm.command.AddCommand;30 import org.openstreetmap.josm.command.Command;31 import org.openstreetmap.josm.command.SequenceCommand;32 24 import org.openstreetmap.josm.data.osm.DataSet; 33 25 import org.openstreetmap.josm.data.osm.Node; 34 26 import org.openstreetmap.josm.data.osm.OsmPrimitive; 35 27 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 36 import org.openstreetmap.josm.data.osm.Relation;37 import org.openstreetmap.josm.data.osm.RelationMember;38 28 import org.openstreetmap.josm.data.osm.SimplePrimitiveId; 39 29 import org.openstreetmap.josm.data.osm.User; … … 67 57 68 58 private class UndeleteAction extends JosmAction { 69 private LinkedList<Command> cmds = new LinkedList<Command>(); 70 71 public UndeleteAction() { 59 /** 60 * 61 */ 62 private static final long serialVersionUID = 1L; 63 public UndeleteAction() { 72 64 super(tr("Undelete object..."), "undelete", tr("Undelete object by id"), Shortcut.registerShortcut("tools:undelete", tr("File: {0}", tr("Undelete object...")), 73 65 KeyEvent.VK_U, Shortcut.GROUP_EDIT, KeyEvent.SHIFT_DOWN_MASK|KeyEvent.ALT_DOWN_MASK), true);
Note:
See TracChangeset
for help on using the changeset viewer.