Ignore:
Timestamp:
2012-05-06T17:33:03+02:00 (13 years ago)
Author:
jttt
Message:

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/Undelete.java

    r27852 r28376  
    2525import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2626import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     27import org.openstreetmap.josm.data.osm.PrimitiveId;
    2728import org.openstreetmap.josm.data.osm.Relation;
    2829import org.openstreetmap.josm.data.osm.RelationMember;
     
    120121        Main.pref.putInteger("undelete.lasttype", cbType.getSelectedIndex());
    121122        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());
    123124        List<Long> ids=new ArrayList<Long>();
    124         ids.add(tfId.getOsmId());
     125        for (PrimitiveId id: tfId.getIds()) {
     126                ids.add(id.getUniqueId());
     127        }
    125128        undelete(layer.isSelected(), cbType.getType(), ids, 0);
    126129      }
Note: See TracChangeset for help on using the changeset viewer.