Changeset 24887 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-12-27T17:55:15+01:00 (14 years ago)
Author:
upliner
Message:

reverter: append plugin string to created_by when uploading revertions, fixes #j5779

Location:
applications/editors/josm/plugins/reverter
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/build.xml

    r23278 r24887  
    3333        <property name="commit.message" value="fix bug with handling for incomplete relation members" />
    3434        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35         <property name="plugin.main.version" value="3403" />
     35        <property name="plugin.main.version" value="3746" />
    3636
    3737
  • applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetCommand.java

    r24882 r24887  
    1515        super(name, sequenz);
    1616        this.name = name;
     17        ReverterPlugin.reverterUsed = true;
    1718    }
    1819
  • applications/editors/josm/plugins/reverter/src/reverter/ReverterPlugin.java

    r23192 r24887  
    99
    1010import org.openstreetmap.josm.Main;
     11import org.openstreetmap.josm.actions.UploadAction;
    1112import org.openstreetmap.josm.gui.MainMenu;
    1213import org.openstreetmap.josm.plugins.Plugin;
     
    1415
    1516public class ReverterPlugin extends Plugin {
     17    static boolean reverterUsed = false;
    1618    public ReverterPlugin(PluginInformation info) {
    1719        super(info);
     
    2022        //MainMenu.add(historyMenu, new ObjectsHistoryAction());
    2123        MainMenu.add(historyMenu, new RevertChangesetAction());
     24        UploadAction.registerUploadHook(new ReverterUploadHook(this));
    2225    }
    2326}
Note: See TracChangeset for help on using the changeset viewer.