001// License: Apache 2.0. For details, see LICENSE file. 002package org.openstreetmap.josm.plugins.wkt; 003 004import org.openstreetmap.josm.actions.ExtensionFileFilter; 005import org.openstreetmap.josm.gui.MainApplication; 006import org.openstreetmap.josm.plugins.Plugin; 007import org.openstreetmap.josm.plugins.PluginInformation; 008 009/** 010 * Main class for the WKT plugin. 011 * 012 * Modified version of geojson plugin. Thanks to the authors of geojson plugin: 013 * @author Ian Dees <ian.dees@gmail.com> 014 * @author matthieun <https://github.com/matthieun> 015 */ 016public class WktPlugin extends Plugin { 017 private final WktFileImporter wktFileImporter; 018 019 public WktPlugin(final PluginInformation info) { 020 super(info); 021 this.wktFileImporter = new WktFileImporter(); 022 ExtensionFileFilter.addImporter(this.wktFileImporter); 023 ExtensionFileFilter.updateAllFormatsImporter(); 024 MainApplication.getMenu().openLocation.addDownloadTaskClass(WktDownloadTask.class); 025 } 026}