src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java
public static void loadModules(Component parent, Collection<ModuleInformation> modules, ProgressMonitor monitor) {
        if (monitor == null) {
            monitor = NullProgressMonitor.INSTANCE;
        }
        try {
            monitor.beginTask(tr("Loading modules ..."));
            monitor.subTask(tr("Checking module preconditions..."));
            List<ModuleInformation> toLoad = new LinkedList<>();
            for (ModuleInformation pi: modules) {
                if (checkLoadPreconditions(parent, modules, pi)) {
                    toLoad.add(pi);
                }
            }
            if (toLoad.isEmpty())
                return;

            ClassLoader moduleClassLoader = createClassLoader(toLoad);
            sources.add(0, moduleClassLoader);
            ImageProvider.addAdditionalClassLoader(moduleClassLoader);
            monitor.setTicksCount(toLoad.size());
            for (ModuleInformation info : toLoad) {
                monitor.setExtraText(tr("Loading module ''{0}''...", info.name));
                loadModule(parent, info, moduleClassLoader);
                monitor.worked(1);
            }
        } finally {
            monitor.finishTask();
        }
    }
/**
     * Loads the module in <code>modules</code> from locally available jar files into memory.
     *
     * @param parent parent component
     * @param modules the list of modules
     * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null.
     */
Loads the module in modules from locally available jar files into memory.

@param parent parent component
@param modules the list of modules
@param monitor the progress monitor. Defaults to  NullProgressMonitor#INSTANCE if null.
Loads the module in modules from locally available jar files into memory . @param parent parent component @param modules the list of modules @param monitor the progress monitor . Defaults to NullProgressMonitor#INSTANCE if null .
public static void loadModules(Component parent, Collection<ModuleInformation> modules, ProgressMonitor monitor) {
        if (monitor == null) {
            monitor = NullProgressMonitor.INSTANCE;
        }
        try {
            monitor.beginTask(tr("Loading modules ..."));
            monitor.subTask(tr("Checking module preconditions..."));
            List<ModuleInformation> toLoad = new LinkedList<>();
            for (ModuleInformation pi: modules) {
                if (checkLoadPreconditions(parent, modules, pi)) {
                    toLoad.add(pi);
                }
            }
            if (toLoad.isEmpty())
                return;
            ClassLoader moduleClassLoader = createClassLoader(toLoad);
            sources.add(0, moduleClassLoader);
            ImageProvider.addAdditionalClassLoader(moduleClassLoader);
            monitor.setTicksCount(toLoad.size());
            for (ModuleInformation info : toLoad) {
                monitor.setExtraText(tr("Loading module ''{0}''...", info.name));
                loadModule(parent, info, moduleClassLoader);
                monitor.worked(1);
            }
        } finally {
            monitor.finishTask();
        }
    }
public static void loadModules ( Component parent , Collection < ModuleInformation > modules , ProgressMonitor monitor ) { if ( monitor == null ) { monitor = NullProgressMonitor . INSTANCE ; } try { monitor . beginTask ( tr ( "Loading modules ..." ) ) ; monitor . subTask ( tr ( "Checking module preconditions..." ) ) ; List < ModuleInformation > toLoad = new LinkedList < > ( ) ; for ( ModuleInformation pi : modules ) { if ( checkLoadPreconditions ( parent , modules , pi ) ) { toLoad . add ( pi ) ; } } if ( toLoad . isEmpty ( ) ) return ; ClassLoader moduleClassLoader = createClassLoader ( toLoad ) ; sources . add ( 0 , moduleClassLoader ) ; ImageProvider . addAdditionalClassLoader ( moduleClassLoader ) ; monitor . setTicksCount ( toLoad . size ( ) ) ; for ( ModuleInformation info : toLoad ) { monitor . setExtraText ( tr ( "Loading module ''{0}''..." , info . name ) ) ; loadModule ( parent , info , moduleClassLoader ) ; monitor . worked ( 1 ) ; } } finally { monitor . finishTask ( ) ; } }
Loads the module in <code>modules</code> from locally available jar files into memory.
Loads the module in <code > modules< / code > from locally available jar files into memory .