Ignore:
Timestamp:
2016-08-22T22:05:45+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13309 - fix unit tests (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r10839 r10876  
    779779    }
    780780
     781    /**
     782     * Resets the preferences to their initial state. This resets all values and file associations.
     783     * The default values and listeners are not removed.
     784     * <p>
     785     * It is meant to be called before {@link #init(boolean)}
     786     * @since 10876
     787     */
     788    public void resetToInitialState() {
     789        resetToDefault();
     790        preferencesDir = null;
     791        cacheDir = null;
     792        userdataDir = null;
     793        saveOnPut = true;
     794        initSuccessful = false;
     795    }
     796
     797    /**
     798     * Reset all values stored in this map to the default values. This clears the preferences.
     799     */
    781800    public final void resetToDefault() {
    782801        settingsMap.clear();
Note: See TracChangeset for help on using the changeset viewer.