Changeset 32287 in osm


Ignore:
Timestamp:
2016-06-16T23:05:20+02:00 (9 years ago)
Author:
donvip
Message:

update plugins to JOSM 10407

Location:
applications/editors/josm/plugins
Files:
16 edited

Legend:

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

    r31923 r32287  
    55    <property name="commit.message" value="use consistent plugin name (don't mix up the words)" />
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="7817" />
     7    <property name="plugin.main.version" value="10407" />
    88
    99    <property name="plugin.author" value="Christoph Beekmans, Fabian Kowitz, Anna Robaszkiewicz, Oliver Kuhn, Martin Ulitzny"/>
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java

    r31751 r32287  
    5656     *
    5757     * @param info
    58      */
    59     public ImportImagePlugin(PluginInformation info){
     58     * @throws IOException if any I/O error occurs
     59     */
     60    public ImportImagePlugin(PluginInformation info) throws IOException{
    6061        super(info);
    6162
     
    8687            if (Main.main != null) {
    8788                MainMenu.add(Main.main.menu.imagerySubMenu, loadFileAction);
    88    
    89                 // add menu entries
    90                 //Main.main.menu.fileMenu.insert(loadFileAction, 8);
    91                 //Main.main.menu.fileMenu.insertSeparator(9);
    92             }
    93 
    94             ExtensionFileFilter.importers.add(new ImportImageFileImporter());
    95 
    96         } catch (Exception e) {
     89            }
     90
     91            ExtensionFileFilter.addImporter(new ImportImageFileImporter());
     92
     93        } catch (IOException e) {
    9794            logger.fatal("Error while loading plugin", e);
    98             try {
    99                 throw e;
    100             } catch (Exception e1) {
    101                 e1.printStackTrace();
    102             }
     95            throw e;
    10396        }
    10497
  • applications/editors/josm/plugins/dataimport/build.xml

    r31926 r32287  
    44    <property name="commit.message" value="Changed constructor signature, updated build.xml"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="10407"/>
    77    <!--
    88      ************************************************
  • applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/DataImportPlugin.java

    r19430 r32287  
    77
    88import org.openstreetmap.josm.actions.ExtensionFileFilter;
     9import org.openstreetmap.josm.plugins.Plugin;
     10import org.openstreetmap.josm.plugins.PluginInformation;
    911import org.openstreetmap.josm.plugins.dataimport.io.TangoGPS;
    1012import org.openstreetmap.josm.plugins.dataimport.io.Tcx;
    11 import org.openstreetmap.josm.plugins.Plugin;
    12 import org.openstreetmap.josm.plugins.PluginInformation;
    1313
     14/**
     15 * Data import plugin.
     16 */
    1417public class DataImportPlugin extends Plugin {
    1518
    1619    /**
    1720     * Add new File import filter into open dialog
     21     * @param info plugin information
    1822     */
    1923    public DataImportPlugin(PluginInformation info) throws IOException{
    2024        super(info);
    2125
    22         ExtensionFileFilter.importers.add(new TangoGPS());
    23         ExtensionFileFilter.importers.add(new Tcx());
     26        ExtensionFileFilter.addImporter(new TangoGPS());
     27        ExtensionFileFilter.addImporter(new Tcx());
    2428    }
    2529}
  • applications/editors/josm/plugins/imagery-xml-bounds/build.xml

    r31926 r32287  
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="8526"/>
     6    <property name="plugin.main.version" value="10407"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/ImageryXmlBoundsPlugin.java

    r30735 r32287  
    2828
    2929    /**
    30      * Action showing bounds of the selected closed ways in Selection dialog 
     30     * Action showing bounds of the selected closed ways in Selection dialog
    3131     */
    3232    private final ShowBoundsAction selectionListAction = new ShowBoundsAction();
    3333
    3434    /**
    35      * Action showing bounds of the selected multipolygons in Properties dialog 
     35     * Action showing bounds of the selected multipolygons in Properties dialog
    3636     */
    3737    private final ShowBoundsAction propertiesListAction = new ShowBoundsAction();
    38    
     38
    3939    /**
    4040     * Action showing bounds of the selected multipolygons in Relations dialog
     
    4646     */
    4747    private final ShowBoundsSelectionAction selectionAction = new ShowBoundsSelectionAction();
    48    
     48
    4949    /**
    5050     * Class modifying the Imagery preferences panel
    5151     */
    5252    private final XmlBoundsPreferenceSetting preferenceSetting = new XmlBoundsPreferenceSetting();
    53    
     53
    5454    /**
    5555     * Initializes the plugin.
     
    5959        super(info);
    6060        // Allow JOSM to import *.imagery.xml files
    61         ExtensionFileFilter.importers.add(0, new XmlBoundsImporter());
     61        ExtensionFileFilter.addImporterFirst(new XmlBoundsImporter());
    6262        // Allow JOSM to export *.imagery.xml files
    63         ExtensionFileFilter.exporters.add(0, new XmlBoundsExporter());
     63        ExtensionFileFilter.addExporterFirst(new XmlBoundsExporter());
    6464        // Initialize the selection action
    6565        DataSet.addSelectionListener(selectionAction);
     
    6868        Main.main.menu.openLocation.addDownloadTaskClass(DownloadXmlBoundsTask.class);
    6969    }
    70    
     70
    7171    @Override
    7272    public PreferenceSetting getPreferenceSetting() {
     
    7777    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    7878        if (newFrame != null) {
    79             // Initialize dialogs actions only after the main frame is created 
     79            // Initialize dialogs actions only after the main frame is created
    8080            newFrame.selectionListDialog.getPopupMenuHandler().addSeparator();
    8181            newFrame.selectionListDialog.getPopupMenuHandler().addAction(selectionListAction);
  • applications/editors/josm/plugins/imagewaypoint/build.xml

    r31926 r32287  
    44    <property name="commit.message" value="[josm/ImageWayPoint] move opening to File/Open"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="10407"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/imagewaypoint/src/org/insignificant/josm/plugins/imagewaypoint/ImageWayPointPlugin.java

    r30737 r32287  
    9595    public ImageWayPointPlugin(PluginInformation info) {
    9696        super(info);
    97         ExtensionFileFilter.importers.add(new ImageWaypointImporter());
     97        ExtensionFileFilter.addImporter(new ImageWaypointImporter());
    9898    }
    9999
  • applications/editors/josm/plugins/importvec/build.xml

    r31923 r32287  
    44    <property name="commit.message" value="Remove the action, add importing SVG to File/Open"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="10407"/>
    77
    88    <property name="plugin.author" value="Upliner"/>
  • applications/editors/josm/plugins/importvec/src/org/openstreetmap/josm/plugins/importvec/ImportVecPlugin.java

    r29854 r32287  
    99    public ImportVecPlugin(PluginInformation info) {
    1010        super(info);
    11         ExtensionFileFilter.importers.add(new SvgImporter());
     11        ExtensionFileFilter.addImporter(new SvgImporter());
    1212    }
    13 
    1413}
  • applications/editors/josm/plugins/opendata/build.xml

    r32071 r32287  
    11<?xml version="1.0" encoding="utf-8"?>
    22<project name="opendata" default="dist" basedir=".">
    3     <property name="plugin.main.version" value="9705"/>
     3    <property name="plugin.main.version" value="10407"/>
    44    <property name="plugin.author" value="Don-vip"/>
    55    <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/>
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java

    r31048 r32287  
    7272                xmlImporter // Generic importer for XML files (currently used for Neptune files)
    7373        })) {
    74             ExtensionFileFilter.importers.add(0, importer);
     74            ExtensionFileFilter.addImporterFirst(importer);
    7575        }
    7676
  • applications/editors/josm/plugins/poly/build.xml

    r31926 r32287  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="7248"/>
     7    <property name="plugin.main.version" value="10407"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/poly/src/poly/PolyPlugin.java

    r28570 r32287  
    1313public class PolyPlugin extends Plugin {
    1414
     15    /**
     16     * Constructs a new {@code PolyPlugin}.
     17     * @param info plugin information
     18     */
    1519    public PolyPlugin(PluginInformation info) {
    1620        super(info);
    17         ExtensionFileFilter.importers.add(new PolyImporter());
    18         ExtensionFileFilter.exporters.add(new PolyExporter());
     21        ExtensionFileFilter.addImporter(new PolyImporter());
     22        ExtensionFileFilter.addExporter(new PolyExporter());
    1923        Main.main.menu.openLocation.addDownloadTaskClass(DownloadPolyTask.class);
    2024    }
  • applications/editors/josm/plugins/trustosm/build.xml

    r31898 r32287  
    55    <property name="commit.message" value="New plugin for digital signing osm data"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="9241" />
     7    <property name="plugin.main.version" value="10407" />
    88    <property name="plugin.author" value="Christoph Wagner" />
    99    <property name="plugin.class" value="org.openstreetmap.josm.plugins.trustosm.TrustOSMplugin" />
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java

    r31646 r32287  
    7272        checkForUnrestrictedPolicyFiles();
    7373        // register new SigImporter and SigExporter
    74         ExtensionFileFilter.importers.add(new SigImporter());
    75         ExtensionFileFilter.exporters.add(new SigExporter());
     74        ExtensionFileFilter.addImporter(new SigImporter());
     75        ExtensionFileFilter.addExporter(new SigExporter());
    7676
    7777        gpg = new TrustGPG();
Note: See TracChangeset for help on using the changeset viewer.