Changeset 33918 in osm for applications


Ignore:
Timestamp:
2017-11-26T15:42:24+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12643

Location:
applications/editors/josm/plugins/simplifyarea
Files:
3 edited

Legend:

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

    r32680 r33918  
    44    <property name="commit.message" value="Initial commit"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="10580"/>
     6    <property name="plugin.main.version" value="12643"/>
    77       
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java

    r32517 r33918  
    3535import org.openstreetmap.josm.data.osm.Way;
    3636import org.openstreetmap.josm.gui.HelpAwareOptionPane;
     37import org.openstreetmap.josm.gui.MainApplication;
    3738import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
    3839import org.openstreetmap.josm.tools.ImageProvider;
     
    4849
    4950    private List<Bounds> getCurrentEditBounds() {
    50         return Main.getLayerManager().getEditLayer().data.getDataSourceBounds();
     51        return MainApplication.getLayerManager().getEditLayer().data.getDataSourceBounds();
    5152    }
    5253
     
    6667                Main.parent,
    6768                "<html>" + trn("The selected way has nodes outside of the downloaded data region.", "The selected ways have nodes outside of the downloaded data region.",
    68                         Main.getLayerManager().getEditDataSet().getSelectedWays().size())
     69                        MainApplication.getLayerManager().getEditDataSet().getSelectedWays().size())
    6970                + "<br>" + tr("This can lead to nodes being deleted accidentally.") + "<br>" + tr("Do you want to delete them anyway?") + "</html>",
    7071                tr("Delete nodes outside of data regions?"), JOptionPane.WARNING_MESSAGE, null, // no special icon
     
    174175            final SequenceCommand rootCommand = new SequenceCommand(trn("Simplify {0} way", "Simplify {0} ways", allCommands.size(), allCommands.size()), allCommands);
    175176            Main.main.undoRedo.add(rootCommand);
    176             Main.map.repaint();
     177            MainApplication.getMap().repaint();
    177178        }
    178179    }
  • applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaPlugin.java

    r30687 r33918  
    22package sk.zdila.josm.plugin.simplify;
    33
    4 import org.openstreetmap.josm.Main;
     4import org.openstreetmap.josm.gui.MainApplication;
    55import org.openstreetmap.josm.gui.MainMenu;
    66import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
     
    1212    public SimplifyAreaPlugin(final PluginInformation info) {
    1313        super(info);
    14         MainMenu.add(Main.main.menu.moreToolsMenu, new SimplifyAreaAction());
     14        MainMenu.add(MainApplication.getMenu().moreToolsMenu, new SimplifyAreaAction());
    1515    }
    1616
Note: See TracChangeset for help on using the changeset viewer.