List<IService> process(List<URL> urls, IProgressMonitor monitor) { List<IService> resources = new ArrayList<IService>(); monitor.beginTask(Messages.get("OpenFilePage_1"), list.size()); int worked = 0; for (URL url : urls) { if (monitor.isCanceled()) { return null; } try { monitor.subTask(url.toExternalForm()); List<IService> acquire = CatalogPlugin.getDefault().getServiceFactory().createService(url); resources.addAll(acquire); } catch (Throwable e) { CatalogUIPlugin.log("error obtaining services from service factory", e); // $NON-NLS-1$ } monitor.worked(worked++); } return resources; }
/** Construct <code>OpenFilePage</code>. */ public FileConnectionPage() { super(Messages.get("OpenFilePage_pageTitle")); }