use of org.talend.core.model.components.ComponentProviderInfo in project tdi-studio-se by Talend.
the class ComponentsFactory method getComponentsProvidersInfo.
@Override
public List<ComponentProviderInfo> getComponentsProvidersInfo() {
List<ComponentProviderInfo> list = new ArrayList<ComponentProviderInfo>();
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
for (AbstractComponentsProvider componentsProvider : componentsProviderManager.getProviders()) {
try {
ComponentProviderInfo info = new ComponentProviderInfo();
info.setId(componentsProvider.getId());
info.setContributer(componentsProvider.getContributer());
info.setLocation(componentsProvider.getInstallationFolder().getAbsolutePath());
list.add(info);
} catch (IOException e) {
ExceptionHandler.process(e);
continue;
}
}
return list;
}
Aggregations