Ignore:
Timestamp:
2015-02-18T00:07:16+01:00 (10 years ago)
Author:
donvip
Message:

[josm_opendata] enable load at runtime for real

Location:
applications/editors/josm/plugins/opendata
Files:
2 edited

Legend:

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

    r31008 r31015  
    66    <property name="plugin.description" value="Convert data from Open Data portals to OSM layer"/>
    77    <property name="plugin.icon" value="images/dialogs/o24.png"/>
    8     <property name="plugin.canloadatruntime" value="false"/>
     8    <property name="plugin.canloadatruntime" value="true"/>
    99    <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData"/>
    1010    <property name="plugin.requires" value="jts;geotools;utilsplugin2"/>
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java

    r30723 r31015  
    7373            ExtensionFileFilter.importers.add(0, importer);
    7474        }
    75         // Load modules
    76         loadModules();
    77         // Add menu
     75
     76        menu = Main.main.menu.dataMenu;
    7877       
    79         menu = Main.main.menu.dataMenu;
    80         buildMenu();
     78        new Thread(new Runnable() {
     79            @Override
     80            public void run() {
     81                // Load modules
     82                loadModules();
     83                // Add menu
     84                buildMenu();
     85            }
     86        }).start();
     87
    8188        // Add download task
    8289        Main.main.menu.openLocation.addDownloadTaskClass(DownloadDataTask.class);
Note: See TracChangeset for help on using the changeset viewer.