Skip to content

Commit

Permalink
update to JOSM 12643
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Nov 25, 2017
1 parent ad02e6d commit 38a1c14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- enter the SVN commit message -->
<property name="commit.message" value="Initial"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="10580"/>
<property name="plugin.main.version" value="12643"/>
<property name="plugin.canloadatruntime" value="true"/>
<!-- Configure these properties (replace "..." accordingly).
See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import javax.swing.JMenu;
import javax.swing.JMenuItem;

import org.openstreetmap.josm.Main;
import org.openstreetmap.josm.gui.MainApplication;
import org.openstreetmap.josm.gui.MainMenu;
import org.openstreetmap.josm.gui.MapFrame;
import org.openstreetmap.josm.plugins.Plugin;
Expand All @@ -22,7 +22,7 @@ public class KartverketPlugin extends Plugin {
*/
public KartverketPlugin(PluginInformation info) {
super(info);
JMenu toolsMenu = Main.main.menu.moreToolsMenu;
JMenu toolsMenu = MainApplication.getMenu().moreToolsMenu;
CheckDirection = MainMenu.add(toolsMenu, new CheckDirectionAction());
mergeWays = MainMenu.add(toolsMenu, new ReplaceWayAction());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import java.util.Iterator;
import java.util.List;

import org.openstreetmap.josm.Main;
import org.openstreetmap.josm.actions.JosmAction;
import org.openstreetmap.josm.data.osm.Node;
import org.openstreetmap.josm.data.osm.Way;
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
import org.openstreetmap.josm.gui.MainApplication;
import org.openstreetmap.josm.gui.Notification;
import org.openstreetmap.josm.plugins.kartverket.CheckDirectionDialog;
import org.openstreetmap.josm.plugins.kartverket.CheckNextWayI;
Expand Down Expand Up @@ -59,7 +59,7 @@ private void nextWay() {
BoundingXYVisitor boundingVisitor = new BoundingXYVisitor();
boundingVisitor.visit(w);
boundingVisitor.enlargeToMinSize(2000.);
Main.map.mapView.zoomTo(boundingVisitor);
MainApplication.getMap().mapView.zoomTo(boundingVisitor);
CheckDirectionDialog dialog = new CheckDirectionDialog(this, nWaysCompleted/(1.*nWaysFixme));
dialog.makeVisible();
isDone = false;
Expand Down

0 comments on commit 38a1c14

Please sign in to comment.