Changeset 28376 in osm for applications/editors/josm/plugins/undelete/src
- Timestamp:
- 2012-05-06T17:33:03+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/Undelete.java
r27852 r28376 25 25 import org.openstreetmap.josm.data.osm.OsmPrimitive; 26 26 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 27 import org.openstreetmap.josm.data.osm.PrimitiveId; 27 28 import org.openstreetmap.josm.data.osm.Relation; 28 29 import org.openstreetmap.josm.data.osm.RelationMember; … … 120 121 Main.pref.putInteger("undelete.lasttype", cbType.getSelectedIndex()); 121 122 Main.pref.put("undelete.newlayer", layer.isSelected()); 122 Main.pref.put("undelete.osmid", Long.toString(tfId.getOsmId()));123 Main.pref.put("undelete.osmid", tfId.getText()); 123 124 List<Long> ids=new ArrayList<Long>(); 124 ids.add(tfId.getOsmId()); 125 for (PrimitiveId id: tfId.getIds()) { 126 ids.add(id.getUniqueId()); 127 } 125 128 undelete(layer.isSelected(), cbType.getType(), ids, 0); 126 129 }
Note:
See TracChangeset
for help on using the changeset viewer.