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 = ComponentController.getComponentTree(registry);
componentTreeViewer.addComponentTree(componentTree);
} catch (ComponentRegistryException e) {
getGUI().getErrorWindow().error(ErrorMessages.COMPONENT_LIST_LOAD_ERROR, e);
} catch (RuntimeException e) {
getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);