Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r12287 r12630 43 43 import org.openstreetmap.josm.gui.DefaultNameFormatter; 44 44 import org.openstreetmap.josm.gui.ExtendedDialog; 45 import org.openstreetmap.josm.gui.MainApplication; 46 import org.openstreetmap.josm.gui.MapFrame; 45 47 import org.openstreetmap.josm.gui.Notification; 46 48 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 255 257 list.addListSelectionListener(e -> { 256 258 final Way selected = list.getSelectedValue(); 257 if (selected != null && Main .isDisplayingMapView() && selected.getNodesCount() > 1) {259 if (selected != null && MainApplication.isDisplayingMapView() && selected.getNodesCount() > 1) { 258 260 final Collection<WaySegment> segments = new ArrayList<>(selected.getNodesCount() - 1); 259 261 final Iterator<Node> it = selected.getNodes().iterator(); … … 272 274 protected void setHighlightedWaySegments(Collection<WaySegment> segments) { 273 275 selectedWay.getDataSet().setHighlightedWaySegments(segments); 274 Main .map.mapView.repaint();276 MainApplication.getMap().mapView.repaint(); 275 277 } 276 278 … … 542 544 Arrays.asList("outer", "inner", "forward", "backward", "north", "south", "east", "west")); 543 545 544 final boolean isMapModeDraw = Main.map != null && Main.map.mapMode == Main.map.mapModeDraw; 546 final MapFrame map = MainApplication.getMap(); 547 final boolean isMapModeDraw = map != null && map.mapMode == map.mapModeDraw; 545 548 546 549 // Change the original way
Note:
See TracChangeset
for help on using the changeset viewer.