Changeset 21807 in osm
- Timestamp:
- 2010-06-19T22:30:58+02:00 (14 years ago)
- Location:
- applications/editors/josm
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/build.xml
r21715 r21807 33 33 <property name="commit.message" value="Added image icon" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3 000" />35 <property name="plugin.main.version" value="3336" /> 36 36 37 37 -
applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java
r21724 r21807 205 205 p.setDeleted(true); 206 206 p.setModified(false); 207 ReverterPlugin.undeletedObjects.addPrimitive(ds,208 new PrimitiveIdVersion(p.getPrimitiveId(),(int)p.getVersion()));209 207 } 210 208 } -
applications/editors/josm/plugins/reverter/src/reverter/DataSetToCmd.java
r21695 r21807 60 60 newTarget.mergeFrom(source); 61 61 newTarget.setOsmId(target.getId(), (int)target.getVersion()); 62 newTarget.setVisible(target.isVisible()); 62 63 newTarget.setDeleted(false); 63 64 cmds.add(new ChangeCommand(target,newTarget)); -
applications/editors/josm/plugins/reverter/src/reverter/ReverterPlugin.java
r21691 r21807 9 9 10 10 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.actions.UploadAction;12 11 import org.openstreetmap.josm.gui.MainMenu; 13 import org.openstreetmap.josm.gui.MapView;14 12 import org.openstreetmap.josm.plugins.Plugin; 15 13 import org.openstreetmap.josm.plugins.PluginInformation; 16 14 17 15 public class ReverterPlugin extends Plugin { 18 static UndeletedObjectsStorage undeletedObjects = new UndeletedObjectsStorage();19 16 public ReverterPlugin(PluginInformation info) { 20 17 super(info); … … 23 20 //MainMenu.add(historyMenu, new ObjectsHistoryAction()); 24 21 MainMenu.add(historyMenu, new RevertChangesetAction()); 25 MapView.addLayerChangeListener(undeletedObjects);26 UploadAction.registerUploadHook(new ReverterUploadHook(undeletedObjects));27 22 } 28 23 }
Note:
See TracChangeset
for help on using the changeset viewer.