src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java
public static List<ModuleInformation> buildListOfModulesToLoad(Component parent) {
        Set<String> modules = new HashSet<>();
        modules.addAll(Config.getPref().getList(OdConstants.PREF_MODULES, new LinkedList<String>()));
        if (System.getProperty("josm."+OdConstants.PREF_MODULES) != null) {
            modules.addAll(Arrays.asList(System.getProperty("josm."+OdConstants.PREF_MODULES).split(",")));
        }
        Map<String, ModuleInformation> infos = loadLocallyAvailableModuleInformation(null);
        List<ModuleInformation> ret = new LinkedList<>();
        for (Iterator<String> it = modules.iterator(); it.hasNext();) {
            String module = it.next();
            if (infos.containsKey(module)) {
                ret.add(infos.get(module));
                it.remove();
            }
        }
        if (!modules.isEmpty()) {
            alertMissingModuleInformation(parent, modules);
        }
        return ret;
    }
/**
     * Builds the set of modules to load. Deprecated and unmaintained modules are filtered
     * out. This involves user interaction. This method displays alert and confirmation messages.
     *
     * @param parent parent component
     * @return the set of modules to load (as set of module names)
     */
Builds the set of modules to load. Deprecated and unmaintained modules are filtered
out. This involves user interaction. This method displays alert and confirmation messages.

@param parent parent component
@return the set of modules to load (as set of module names)
Builds the set of modules to load . Deprecated and unmaintained modules are filtered out . This involves user interaction . This method displays alert and confirmation messages . @param parent parent component @return the set of modules to load ( as set of module names )
public static List<ModuleInformation> buildListOfModulesToLoad(Component parent) {
        Set<String> modules = new HashSet<>();
        modules.addAll(Config.getPref().getList(OdConstants.PREF_MODULES, new LinkedList<String>()));
        if (System.getProperty("josm."+OdConstants.PREF_MODULES) != null) {
            modules.addAll(Arrays.asList(System.getProperty("josm."+OdConstants.PREF_MODULES).split(",")));
        }
        Map<String, ModuleInformation> infos = loadLocallyAvailableModuleInformation(null);
        List<ModuleInformation> ret = new LinkedList<>();
        for (Iterator<String> it = modules.iterator(); it.hasNext();) {
            String module = it.next();
            if (infos.containsKey(module)) {
                ret.add(infos.get(module));
                it.remove();
            }
        }
        if (!modules.isEmpty()) {
            alertMissingModuleInformation(parent, modules);
        }
        return ret;
    }
public static List < ModuleInformation > buildListOfModulesToLoad ( Component parent ) { Set < String > modules = new HashSet < > ( ) ; modules . addAll ( Config . getPref ( ) . getList ( OdConstants . PREF_MODULES , new LinkedList < String > ( ) ) ) ; if ( System . getProperty ( "josm." + OdConstants . PREF_MODULES ) != null ) { modules . addAll ( Arrays . asList ( System . getProperty ( "josm." + OdConstants . PREF_MODULES ) . split ( "," ) ) ) ; } Map < String , ModuleInformation > infos = loadLocallyAvailableModuleInformation ( null ) ; List < ModuleInformation > ret = new LinkedList < > ( ) ; for ( Iterator < String > it = modules . iterator ( ) ; it . hasNext ( ) ; ) { String module = it . next ( ) ; if ( infos . containsKey ( module ) ) { ret . add ( infos . get ( module ) ) ; it . remove ( ) ; } } if ( ! modules . isEmpty ( ) ) { alertMissingModuleInformation ( parent , modules ) ; } return ret ; }
Builds the set of modules to load.
Builds the set of modules to load .