Changeset 33918 in osm for applications
- Timestamp:
- 2017-11-26T15:42:24+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/simplifyarea
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/simplifyarea/build.xml
r32680 r33918 4 4 <property name="commit.message" value="Initial commit"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 0580"/>6 <property name="plugin.main.version" value="12643"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java
r32517 r33918 35 35 import org.openstreetmap.josm.data.osm.Way; 36 36 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 37 import org.openstreetmap.josm.gui.MainApplication; 37 38 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 38 39 import org.openstreetmap.josm.tools.ImageProvider; … … 48 49 49 50 private List<Bounds> getCurrentEditBounds() { 50 return Main .getLayerManager().getEditLayer().data.getDataSourceBounds();51 return MainApplication.getLayerManager().getEditLayer().data.getDataSourceBounds(); 51 52 } 52 53 … … 66 67 Main.parent, 67 68 "<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()) 69 70 + "<br>" + tr("This can lead to nodes being deleted accidentally.") + "<br>" + tr("Do you want to delete them anyway?") + "</html>", 70 71 tr("Delete nodes outside of data regions?"), JOptionPane.WARNING_MESSAGE, null, // no special icon … … 174 175 final SequenceCommand rootCommand = new SequenceCommand(trn("Simplify {0} way", "Simplify {0} ways", allCommands.size(), allCommands.size()), allCommands); 175 176 Main.main.undoRedo.add(rootCommand); 176 Main .map.repaint();177 MainApplication.getMap().repaint(); 177 178 } 178 179 } -
applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaPlugin.java
r30687 r33918 2 2 package sk.zdila.josm.plugin.simplify; 3 3 4 import org.openstreetmap.josm. Main;4 import org.openstreetmap.josm.gui.MainApplication; 5 5 import org.openstreetmap.josm.gui.MainMenu; 6 6 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; … … 12 12 public SimplifyAreaPlugin(final PluginInformation info) { 13 13 super(info); 14 MainMenu.add(Main .main.menu.moreToolsMenu, new SimplifyAreaAction());14 MainMenu.add(MainApplication.getMenu().moreToolsMenu, new SimplifyAreaAction()); 15 15 } 16 16
Note:
See TracChangeset
for help on using the changeset viewer.