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

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

File:
1 edited

Legend:

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

    r12841 r12846  
    4141import org.openstreetmap.josm.gui.widgets.JosmComboBox;
    4242import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel;
     43import org.openstreetmap.josm.spi.preferences.Config;
    4344import org.openstreetmap.josm.tools.GBC;
    4445import org.openstreetmap.josm.tools.JosmRuntimeException;
     
    482483        }
    483484        id = pc.getId();
    484         Main.pref.putList("projection.sub."+id, pref == null ? null : new ArrayList<>(pref));
     485        Config.getPref().putList("projection.sub."+id, pref == null ? null : new ArrayList<>(pref));
    485486        if (makeDefault) {
    486487            PROP_PROJECTION_DEFAULT.put(id);
     
    560561     */
    561562    public static Collection<String> getSubprojectionPreference(String pcId) {
    562         return Main.pref.getList("projection.sub."+pcId, null);
     563        return Config.getPref().getList("projection.sub."+pcId, null);
    563564    }
    564565
Note: See TracChangeset for help on using the changeset viewer.