Ignore:
Timestamp:
2010-02-14T19:05:36+01:00 (14 years ago)
Author:
jttt
Message:

Fix some of FindBugs warnings

File:
1 edited

Legend:

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

    r2985 r2986  
    348348        if(currentMode.equals(c) || (!drawTargetCursor && currentMode.equals(DeleteMode.none)))
    349349            return;
    350         try {
    351             // We invoke this to prevent strange things from happening
    352             EventQueue.invokeLater(new Runnable() {
    353                 public void run() {
    354                     // Don't change cursor when mode has changed already
    355                     if(!(Main.map.mapMode instanceof DeleteAction))
    356                         return;
    357 
    358                     Main.map.mapView.setCursor(c.cursor());
    359                     //System.out.println("Set cursor to: " + c.name());
    360                 }
    361             });
    362             currentMode = c;
    363         } catch(Exception e) {}
     350        // We invoke this to prevent strange things from happening
     351        EventQueue.invokeLater(new Runnable() {
     352            public void run() {
     353                // Don't change cursor when mode has changed already
     354                if(!(Main.map.mapMode instanceof DeleteAction))
     355                    return;
     356
     357                Main.map.mapView.setCursor(c.cursor());
     358                //System.out.println("Set cursor to: " + c.name());
     359            }
     360        });
     361        currentMode = c;
    364362    }
    365363
Note: See TracChangeset for help on using the changeset viewer.