Ignore:
Timestamp:
2017-11-25T01:59:21+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 13007

Location:
applications/editors/josm/plugins/HouseNumberTaggingTool
Files:
4 edited

Legend:

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

    r33714 r33904  
    44    <property name="commit.message" value="Initial version."/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="12859"/>
     6    <property name="plugin.main.version" value="13007"/>
    77    <!-- Configure these properties (replace "..." accordingly).
    88         See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
  • applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/HouseNumberTaggingToolPlugin.java

    r33714 r33904  
    1818    public HouseNumberTaggingToolPlugin(PluginInformation info) {
    1919        super(info);
    20         action = new LaunchAction(getPluginDir());
     20        action = new LaunchAction(getPluginDirs().getUserDataDirectory(false));
    2121        MainMenu.add(MainApplication.getMenu().dataMenu, action, false,0);
    2222    }
  • applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/LaunchAction.java

    r33714 r33904  
    33import java.awt.event.ActionEvent;
    44import java.awt.event.KeyEvent;
     5import java.io.File;
    56import java.util.Collection;
    67
     
    1516    private OsmPrimitive selection = null;
    1617
    17     private String pluginDir;
     18    private File pluginDir;
    1819
    1920    /**
     
    2122     * @param pluginDir plugin directory
    2223     */
    23     public LaunchAction(String pluginDir) {
     24    public LaunchAction(File pluginDir) {
    2425        super("HouseNumberTaggingTool",
    2526              "home-icon32",
  • applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/TagDialog.java

    r33714 r33904  
    7373    private static final Logger LOGGER = Logger.getLogger(TagDialog.class.getName());
    7474
    75     private String pluginDir;
     75    private File pluginDir;
    7676    private AutoCompletionManager acm;
    7777    private OsmPrimitive selection;
     
    102102     * @param selection selected primitive
    103103     */
    104     public TagDialog(String pluginDir, OsmPrimitive selection) {
     104    public TagDialog(File pluginDir, OsmPrimitive selection) {
    105105        super(Main.parent, tr("House Number Editor"), new String[] { tr("OK"), tr("Cancel") }, true);
    106106        this.pluginDir = pluginDir;
     
    404404
    405405    protected void saveDto(Dto dto) {
    406         File path = new File(pluginDir);
     406        File path = pluginDir;
    407407        File fileName = new File(pluginDir + TagDialog.TEMPLATE_DATA);
    408408
Note: See TracChangeset for help on using the changeset viewer.