Ignore:
Timestamp:
2008-09-21T14:03:38+02:00 (16 years ago)
Author:
stoecker
Message:

close bug #1588, code cleanup by bruce89

Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
2 edited

Legend:

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

    r845 r999  
    3939import org.openstreetmap.josm.command.Command;
    4040import org.openstreetmap.josm.command.SequenceCommand;
    41 import org.openstreetmap.josm.data.Preferences;
    4241import org.openstreetmap.josm.data.SelectionChangedListener;
    4342import org.openstreetmap.josm.data.coor.EastNorth;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r804 r999  
    2222import org.openstreetmap.josm.command.Command;
    2323import org.openstreetmap.josm.command.SequenceCommand;
    24 import org.openstreetmap.josm.data.Preferences;
    2524import org.openstreetmap.josm.data.coor.EastNorth;
    2625import org.openstreetmap.josm.data.osm.Node;
     
    6867
    6968        /**
    70          * The screen distance which needs to be travelled before something
    71          * counts as a move, in pixels
    72          */
    73         private int initialMoveThreshold = 15;
    74         private boolean initialMoveThresholdExceeded = false;
    75         /**
    7669         * Create a new SelectAction
    7770         * @param mapFrame The MapFrame this action belongs to.
     
    8275                        getCursor("normal", "selection", Cursor.DEFAULT_CURSOR));
    8376                putValue("help", "Action/Extrude/Extrude");
    84                 try { initialMoveDelay = Integer.parseInt(Main.pref.get("edit.initial-move-delay","200")); } catch (NumberFormatException x) {}
    85                 try { initialMoveThreshold = Integer.parseInt(Main.pref.get("edit.initial-move-threshold","5")); } catch (NumberFormatException x) {}
     77                initialMoveDelay = Main.pref.getInteger("edit.initial-move-delay",200);
    8678                selectedColor = Main.pref.getColor(marktr("selected"), Color.YELLOW);
    8779        }
     
    268260                }
    269261        }
    270        
    271 
    272262}
Note: See TracChangeset for help on using the changeset viewer.