Ignore:
Timestamp:
2011-02-20T15:08:35+01:00 (14 years ago)
Author:
stoecker
Message:

unify cursor handling, hopefully fix #5381

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r2017 r3919  
    2424 */
    2525abstract public class MapMode extends JosmAction implements MouseListener, MouseMotionListener {
    26     private final Cursor cursor;
    27     private Cursor oldCursor;
     26    protected final Cursor cursor;
    2827
    2928    /**
     
    4847    public void enterMode() {
    4948        putValue("active", true);
    50         oldCursor = Main.map.mapView.getCursor();
    51         Main.map.mapView.setCursor(cursor);
     49        Main.map.mapView.setNewCursor(cursor, this);
    5250        updateStatusLine();
    5351    }
    5452    public void exitMode() {
    5553        putValue("active", false);
    56         Main.map.mapView.setCursor(oldCursor);
     54        Main.map.mapView.resetCursor(this);
    5755    }
    5856
Note: See TracChangeset for help on using the changeset viewer.