Ignore:
Timestamp:
2017-09-13T23:24:50+02:00 (3 years ago)
Author:
bastiK
Message:

see #15229 - use Config.getPref() wherever possible

Location:
trunk/src/org/openstreetmap/josm/data/coor/conversion
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/conversion/DMSCoordinateFormat.java

    r12741 r12846  
    66import java.text.DecimalFormat;
    77
    8 import org.openstreetmap.josm.Main;
    98import org.openstreetmap.josm.data.coor.ILatLon;
     9import org.openstreetmap.josm.spi.preferences.Config;
    1010
    1111/**
     
    1717    private static final DecimalFormat DMS_MINUTE_FORMATTER = new DecimalFormat("00");
    1818    private static final DecimalFormat DMS_SECOND_FORMATTER = new DecimalFormat(
    19             Main.pref == null ? "00.0" : Main.pref.get("latlon.dms.decimal-format", "00.0"));
     19            Config.getPref() == null ? "00.0" : Config.getPref().get("latlon.dms.decimal-format", "00.0"));
    2020    private static final String DMS60 = DMS_SECOND_FORMATTER.format(60.0);
    2121    private static final String DMS00 = DMS_SECOND_FORMATTER.format(0.0);
  • trunk/src/org/openstreetmap/josm/data/coor/conversion/NauticalCoordinateFormat.java

    r12741 r12846  
    66import java.text.DecimalFormat;
    77
    8 import org.openstreetmap.josm.Main;
    98import org.openstreetmap.josm.data.coor.ILatLon;
     9import org.openstreetmap.josm.spi.preferences.Config;
    1010
    1111/**
     
    1515public class NauticalCoordinateFormat extends AbstractCoordinateFormat {
    1616    private static final DecimalFormat DM_MINUTE_FORMATTER = new DecimalFormat(
    17             Main.pref == null ? "00.000" : Main.pref.get("latlon.dm.decimal-format", "00.000"));
     17            Config.getPref() == null ? "00.000" : Config.getPref().get("latlon.dm.decimal-format", "00.000"));
    1818    private static final String DM60 = DM_MINUTE_FORMATTER.format(60.0);
    1919    private static final String DM00 = DM_MINUTE_FORMATTER.format(0.0);
Note: See TracChangeset for help on using the changeset viewer.