Changeset 26899 in osm for applications


Ignore:
Timestamp:
2011-10-17T02:54:59+02:00 (13 years ago)
Author:
donvip
Message:

JOSM plugin imagery XML bounds version 1.2: allow to open imagery XML files with Ctrl-L

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/ImageryXmlBoundsPlugin.java

    r26896 r26899  
    1818import org.openstreetmap.josm.Main;
    1919import org.openstreetmap.josm.actions.ExtensionFileFilter;
     20import org.openstreetmap.josm.data.Version;
    2021import org.openstreetmap.josm.data.osm.DataSet;
    2122import org.openstreetmap.josm.gui.MapFrame;
    2223import org.openstreetmap.josm.plugins.Plugin;
    2324import org.openstreetmap.josm.plugins.PluginInformation;
     25import org.openstreetmap.josm.plugins.graphview.plugin.data.JOSMDataSource;
    2426import org.openstreetmap.josm.plugins.imageryxmlbounds.actions.ShowBoundsListAction;
    2527import org.openstreetmap.josm.plugins.imageryxmlbounds.actions.ShowBoundsPropertiesAction;
     
    7476                Main.toolbar.register(selectionAction);
    7577                // Allow JOSM to download *.imagery.xml files
    76                 Main.main.menu.openLocation.addDownloadTaskClass(DownloadXmlBoundsTask.class);
     78                if (Version.getInstance().getVersion() >= 4523) {
     79                    Main.main.menu.openLocation.addDownloadTaskClass(DownloadXmlBoundsTask.class);
     80                }
    7781        }
    7882
Note: See TracChangeset for help on using the changeset viewer.