Ignore:
Timestamp:
2017-08-27T17:29:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - move PROP_SYSTEM_OF_MEASUREMENT from gui.preferences.ProjectionPreferences to data.SystemOfMeasurment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r12486 r12674  
    273273
    274274    private static String projectionChoice;
    275    
     275
    276276    private static final StringProperty PROP_PROJECTION_DEFAULT = new StringProperty("projection.default", mercator.getId());
    277277    private static final StringProperty PROP_COORDINATES = new StringProperty("coordinates", null);
    278278    private static final CollectionProperty PROP_SUB_PROJECTION_DEFAULT = new CollectionProperty("projection.default.sub", null);
    279     public static final StringProperty PROP_SYSTEM_OF_MEASUREMENT = new StringProperty("system_of_measurement", "Metric");
    280279    private static final String[] unitsValues = ALL_SYSTEMS.keySet().toArray(new String[ALL_SYSTEMS.size()]);
    281280    private static final String[] unitsValuesTr = new String[unitsValues.length];
     
    339338
    340339        for (int i = 0; i < unitsValues.length; ++i) {
    341             if (unitsValues[i].equals(PROP_SYSTEM_OF_MEASUREMENT.get())) {
     340            if (unitsValues[i].equals(SystemOfMeasurement.PROP_SYSTEM_OF_MEASUREMENT.get())) {
    342341                unitsCombo.setSelectedIndex(i);
    343342                break;
Note: See TracChangeset for help on using the changeset viewer.