src/org/openstreetmap/josm/plugins/opendata/core/gui/ModulePreference.java
public void readLocalModuleInformation() {
        final ReadLocalModuleInformationTask task = new ReadLocalModuleInformationTask();
        Runnable r = () -> {
            if (task.isCanceled()) return;
            SwingUtilities.invokeLater(() -> {
                model.setAvailableModules(task.getAvailableModules());
                pnlModulePreferences.refreshView();
            });
        };
        MainApplication.worker.submit(task);
        MainApplication.worker.submit(r);
    }
/**
     * Reads locally available information about modules from the local file system.
     * Scans cached module lists from module download sites and locally available
     * module jar files.
     *
     */
Reads locally available information about modules from the local file system.
Scans cached module lists from module download sites and locally available
module jar files.
Reads locally available information about modules from the local file system . Scans cached module lists from module download sites and locally available module jar files .
public void readLocalModuleInformation() {
        final ReadLocalModuleInformationTask task = new ReadLocalModuleInformationTask();
        Runnable r = () -> {
            if (task.isCanceled()) return;
            SwingUtilities.invokeLater(() -> {
                model.setAvailableModules(task.getAvailableModules());
                pnlModulePreferences.refreshView();
            });
        };
        MainApplication.worker.submit(task);
        MainApplication.worker.submit(r);
    }
public void readLocalModuleInformation ( ) { final ReadLocalModuleInformationTask task = new ReadLocalModuleInformationTask ( ) ; Runnable r = ( ) -> { if ( task . isCanceled ( ) ) return ; SwingUtilities . invokeLater ( ( ) -> { model . setAvailableModules ( task . getAvailableModules ( ) ) ; pnlModulePreferences . refreshView ( ) ; } ) ; } ; MainApplication . worker . submit ( task ) ; MainApplication . worker . submit ( r ) ; }
Reads locally available information about modules from the local file system.
Reads locally available information about modules from the local file system .