Changeset 33528 in osm for applications/editors
- Timestamp:
- 2017-08-26T02:03:44+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/public_transport_layer/src/ptl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport_layer/src/ptl/Plugin.java
r32538 r33528 2 2 package ptl; 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.plugins.PluginInformation; … … 10 10 public Plugin(PluginInformation info) { 11 11 super(info); 12 MainMenu.add(Main .main.menu.dataMenu, new PublicTransportLayer.AddLayerAction());13 MainMenu.add(Main .main.menu.dataMenu, new DistanceBetweenStops());12 MainMenu.add(MainApplication.getMenu().dataMenu, new PublicTransportLayer.AddLayerAction()); 13 MainMenu.add(MainApplication.getMenu().dataMenu, new DistanceBetweenStops()); 14 14 } 15 15 } 16 -
applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java
r33447 r33528 15 15 import javax.swing.Icon; 16 16 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.actions.JosmAction; 19 18 import org.openstreetmap.josm.data.Bounds; … … 25 24 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 26 25 import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer; 26 import org.openstreetmap.josm.gui.MainApplication; 27 27 import org.openstreetmap.josm.gui.MapView; 28 28 import org.openstreetmap.josm.gui.layer.Layer; … … 35 35 import org.openstreetmap.josm.tools.ColorHelper; 36 36 import org.openstreetmap.josm.tools.ImageProvider; 37 import org.openstreetmap.josm.tools.Logging; 37 38 import org.openstreetmap.josm.tools.MultiMap; 38 39 import org.openstreetmap.josm.tools.Pair; … … 80 81 color = ColorHelper.html2color(relation.get("colour")); 81 82 } catch (RuntimeException ignore) { 82 Main.trace(ignore);83 Logging.trace(ignore); 83 84 } 84 85 renderer.drawWay(way, color, new BasicStroke(1), null, null, 0, doDrawArrows, false, false, false); … … 144 145 public void actionPerformed(ActionEvent e) { 145 146 doDrawArrows = !doDrawArrows; 146 Main .map.repaint();147 MainApplication.getMap().repaint(); 147 148 } 148 149 }, … … 151 152 public void actionPerformed(ActionEvent e) { 152 153 doDrawRefLabels = !doDrawRefLabels; 153 Main .map.repaint();154 MainApplication.getMap().repaint(); 154 155 } 155 156 } … … 165 166 @Override 166 167 public void actionPerformed(ActionEvent e) { 167 Main .getLayerManager().addLayer(new PublicTransportLayer());168 MainApplication.getLayerManager().addLayer(new PublicTransportLayer()); 168 169 } 169 170 }
Note:
See TracChangeset
for help on using the changeset viewer.