/** * Installs all resources found, matching the given pattern. Existing resources are left as-is * and are not overwritten. * * @param patternString the pattern * @param pm progress monitor for indicating progress */ public void install(String patternString, ProgressMonitor pm) throws IOException { try { pm.beginTask("Installing resource data: ", 2); scanner.scan(SubProgressMonitor.create(pm, 1)); URL[] resources = scanner.getResourcesByPattern(patternString); copyResources(resources, SubProgressMonitor.create(pm, 1)); } finally { pm.done(); } }