for (String path : localRegistryPaths) {
try {
LocalComponentRegistry registry = new LocalComponentRegistry(path);
// XXX This might take time, so it's better to move to another
// thread.
ComponentTreeNode componentTree = registry.getComponentTree();
componentTreeViewer.addComponentTree(componentTree);
} catch (ComponentRegistryException e) {
getErrorWindow().error(ErrorMessages.COMPONENT_LIST_LOAD_ERROR, e);
} catch (RuntimeException e) {
getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);