Changeset 8681 in josm for trunk/src/org


Ignore:
Timestamp:
2015-08-22T21:35:05+02:00 (9 years ago)
Author:
simon04
Message:

see #11795 - taginfo-extract also external presets

File:
1 edited

Legend:

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

    r8530 r8681  
    443443    public Collection<SourceEntry> getActiveSources() {
    444444        return activeSourcesModel.getSources();
     445    }
     446
     447    /**
     448     * Synchronously loads available sources and returns the parsed list.
     449     */
     450    Collection<ExtendedSourceEntry> loadAndGetAvailableSources() {
     451        try {
     452            final SourceLoader loader = new SourceLoader(availableSourcesUrl, sourceProviders);
     453            loader.realRun();
     454            return loader.sources;
     455        } catch (Exception ex) {
     456            throw new RuntimeException(ex);
     457        }
    445458    }
    446459
Note: See TracChangeset for help on using the changeset viewer.