Changeset 28376 in osm for applications/editors/josm/plugins/undelete
- Timestamp:
- 2012-05-06T17:33:03+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/undelete
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/undelete/build.xml
r27852 r28376 32 32 <property name="commit.message" value="adapt to core changes (backwards compatible)"/> 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value=" 4980"/>34 <property name="plugin.main.version" value="5211"/> 35 35 <!-- 36 36 ************************************************ -
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.