Changeset 3919 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
- Timestamp:
- 2011-02-20T15:08:35+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r2017 r3919 24 24 */ 25 25 abstract public class MapMode extends JosmAction implements MouseListener, MouseMotionListener { 26 private final Cursor cursor; 27 private Cursor oldCursor; 26 protected final Cursor cursor; 28 27 29 28 /** … … 48 47 public void enterMode() { 49 48 putValue("active", true); 50 oldCursor = Main.map.mapView.getCursor(); 51 Main.map.mapView.setCursor(cursor); 49 Main.map.mapView.setNewCursor(cursor, this); 52 50 updateStatusLine(); 53 51 } 54 52 public void exitMode() { 55 53 putValue("active", false); 56 Main.map.mapView. setCursor(oldCursor);54 Main.map.mapView.resetCursor(this); 57 55 } 58 56
Note:
See TracChangeset
for help on using the changeset viewer.