Changeset 33733 in osm for applications/editors/josm/plugins/CommandLine/src/CommandLine/AnyAction.java
- Timestamp:
- 2017-10-26T00:42:11+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine
- Property svn:ignore
-
old new 2 2 checkstyle-josm-CommandLine.xml 3 3 findbugs-josm-CommandLine.xml 4 spotbugs-josm-CommandLine.xml
-
- Property svn:ignore
-
applications/editors/josm/plugins/CommandLine/src/CommandLine/AnyAction.java
r33238 r33733 4 4 import java.awt.Point; 5 5 6 import org.openstreetmap.josm.Main;7 6 import org.openstreetmap.josm.data.osm.OsmPrimitive; 7 import org.openstreetmap.josm.gui.MainApplication; 8 8 9 9 public class AnyAction extends AbstractOsmAction<OsmPrimitive> { … … 15 15 @Override 16 16 protected OsmPrimitive getNearest(Point mousePos) { 17 return Main .map.mapView.getNearestNodeOrWay(mousePos, OsmPrimitive::isUsable, false);17 return MainApplication.getMap().mapView.getNearestNodeOrWay(mousePos, OsmPrimitive::isUsable, false); 18 18 } 19 19 }
Note:
See TracChangeset
for help on using the changeset viewer.