Ignore:
Timestamp:
2023-09-20T15:28:52+02:00 (14 months ago)
Author:
taylor.smock
Message:

Fix #17052: Allow plugins to save state to session file

The primary feature request was for the TODO plugin to save the list elements for
a future session.

This allows plugins to register via ServiceLoader classes which need to be
called to save or restore their state.

In addition, this fixes an ordering issue with tests whereby the OsmApi cache
would be cleared, but the FakeOsmApi class would not recache itself when called.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/FakeOsmApi.java

    r10373 r18833  
    110110    /**
    111111     * Gets and caches an instance of this API.
    112      * @return The API intance. Always the same object.
     112     * @return The API instance. Always the same object.
    113113     */
    114114    public static synchronized FakeOsmApi getInstance() {
    115115        if (instance == null) {
    116116            instance = new FakeOsmApi();
    117             cacheInstance(instance);
    118117        }
     118        cacheInstance(instance);
    119119        return instance;
    120120    }
Note: See TracChangeset for help on using the changeset viewer.