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

update plugins to JOSM 10407

Location:
applications/editors/josm/plugins/imagery-xml-bounds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.