Changeset 33837 in osm for applications/editors/josm
- Timestamp:
- 2017-11-17T21:38:04+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/wms-turbo-challenge2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wms-turbo-challenge2/build.xml
r32680 r33837 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 0580"/>7 <property name="plugin.main.version" value="12643"/> 8 8 9 9 <property name="plugin.author" value="Andrzej Zaborowski"/> -
applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/FakeMapView.java
r33342 r33837 39 39 FakeMapView(MapView parent, double scale) { 40 40 // TODO: MapView constructor contains registering listeners and other code, that probably shouldn't be called in fake map view 41 super(null, null , null);41 super(null, null); 42 42 this.parent = parent; 43 43 this.scale = scale; -
applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java
r33342 r33837 33 33 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 34 34 import org.openstreetmap.josm.data.gpx.WayPoint; 35 import org.openstreetmap.josm.gui.MainApplication; 35 36 import org.openstreetmap.josm.gui.layer.GpxLayer; 36 37 import org.openstreetmap.josm.gui.layer.Layer; … … 63 64 64 65 this.ground = ground; 65 ground_view = new FakeMapView(Main .map.mapView, 0.0000001);66 ground_view = new FakeMapView(MainApplication.getMap().mapView, 0.0000001); 66 67 67 68 /* Retrieve start position */ -
applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/WMSRacer.java
r33342 r33837 11 11 import javax.swing.JMenuItem; 12 12 13 import org.openstreetmap.josm.Main;14 13 import org.openstreetmap.josm.actions.JosmAction; 14 import org.openstreetmap.josm.gui.MainApplication; 15 15 import org.openstreetmap.josm.gui.MapFrame; 16 16 import org.openstreetmap.josm.gui.layer.Layer; … … 32 32 driveAction.updateEnabledState(); 33 33 34 JMenu toolsMenu = Main .main.menu.toolsMenu;34 JMenu toolsMenu = MainApplication.getMenu().toolsMenu; 35 35 toolsMenu.addSeparator(); 36 36 toolsMenu.add(new JMenuItem(driveAction)); … … 105 105 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 106 106 if (oldFrame != null) { 107 Main.getLayerManager().removeLayerChangeListener(this); 108 Main.getLayerManager().removeActiveLayerChangeListener(this); 107 MainApplication.getLayerManager().removeLayerChangeListener(this); 108 MainApplication.getLayerManager().removeActiveLayerChangeListener(this); 109 109 } 110 110 … … 113 113 114 114 if (newFrame != null) { 115 Main.getLayerManager().addLayerChangeListener(this); 116 Main.getLayerManager().addActiveLayerChangeListener(this); 115 MainApplication.getLayerManager().addLayerChangeListener(this); 116 MainApplication.getLayerManager().addActiveLayerChangeListener(this); 117 117 } 118 118 } … … 120 120 @Override 121 121 public void activeOrEditLayerChanged(ActiveLayerChangeEvent e) { 122 driveAction.currentLayer = Main.getLayerManager().getActiveLayer(); 122 driveAction.currentLayer = MainApplication.getLayerManager().getActiveLayer(); 123 123 driveAction.updateEnabledState(); 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.