Ignore:
Timestamp:
2009-01-01T18:28:53+01:00 (16 years ago)
Author:
stoecker
Message:

removed tab stop usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/nearclick/src/nearclick/NearClickPlugin.java

    r4088 r12778  
    2020    public NearClickPlugin() {
    2121        Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK);
    22         try {
    23             int radius = Integer.parseInt(Main.pref.get("nearclick.radius", "7"));
    24             radiussquared = radius * radius;
    25             delay = Integer.parseInt(Main.pref.get("nearclick.delay", "250"));
    26         } catch (NumberFormatException ex) {
    27             delay = 250;
    28             radiussquared = 7 * 7;
    29         }
     22    try {
     23        int radius = Integer.parseInt(Main.pref.get("nearclick.radius", "7"));
     24        radiussquared = radius * radius;
     25        delay = Integer.parseInt(Main.pref.get("nearclick.delay", "250"));
     26    } catch (NumberFormatException ex) {
     27        delay = 250;
     28        radiussquared = 7 * 7;
     29    }
    3030    }
    3131
     
    3535            if ( e.getButton() != MouseEvent.BUTTON1 )
    3636                return;
    37             int xdiff = e.getPoint().x - mouseDownX;
    38             int ydiff = e.getPoint().y - mouseDownY;
    39            
     37        int xdiff = e.getPoint().x - mouseDownX;
     38        int ydiff = e.getPoint().y - mouseDownY;
     39       
    4040            if (e.getID() == MouseEvent.MOUSE_RELEASED) {
    4141                if ( e.getWhen() - mouseDownTime < delay &&
    42                      ( e.getPoint().x != mouseDownX ||
    43                        e.getPoint().y != mouseDownY) &&
    44                      xdiff * xdiff + ydiff * ydiff < radiussquared
    45                    ) {
     42             ( e.getPoint().x != mouseDownX ||
     43               e.getPoint().y != mouseDownY) &&
     44             xdiff * xdiff + ydiff * ydiff < radiussquared
     45           ) {
    4646                    try {
    4747                        Robot r = new Robot(GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice());
Note: See TracChangeset for help on using the changeset viewer.