Ignore:
Timestamp:
2017-09-21T12:41:32+02:00 (2 years ago)
Author:
bastiK
Message:

see #15229 - move remaining classes to spi.preferences package, to make it self-contained

  • extract event listener classes from Preferences (duplicated, for smooth transition)
  • move *Setting classes
Location:
trunk/src/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

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

    r12846 r12881  
    77
    88import org.openstreetmap.josm.Main;
     9import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
    910import org.openstreetmap.josm.data.Preferences;
    10 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener;
     11import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    1112import org.openstreetmap.josm.data.preferences.BooleanProperty;
    1213
     
    5253
    5354    @Override
    54     public void preferenceChanged(Preferences.PreferenceChangeEvent e) {
     55    public void preferenceChanged(PreferenceChangeEvent e) {
    5556        checkbox.setSelected(pref.get());
    5657    }
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r12856 r12881  
    2727import org.openstreetmap.josm.data.osm.DataSet;
    2828import org.openstreetmap.josm.data.osm.DatasetConsistencyTest;
    29 import org.openstreetmap.josm.data.preferences.Setting;
     29import org.openstreetmap.josm.spi.preferences.Setting;
    3030import org.openstreetmap.josm.data.preferences.sources.MapPaintPrefHelper;
    3131import org.openstreetmap.josm.data.preferences.sources.PresetPrefHelper;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r12873 r12881  
    1212
    1313import org.openstreetmap.josm.actions.JosmAction;
    14 import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent;
    15 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener;
     14import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
     15import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    1616import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1717import org.openstreetmap.josm.gui.MainApplication;
Note: See TracChangeset for help on using the changeset viewer.