Search in sources :

Example 1 with ComponentProviderInfo

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;
}
Also used : AbstractComponentsProvider(org.talend.core.model.components.AbstractComponentsProvider) ComponentProviderInfo(org.talend.core.model.components.ComponentProviderInfo) ArrayList(java.util.ArrayList) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 AbstractComponentsProvider (org.talend.core.model.components.AbstractComponentsProvider)1 ComponentProviderInfo (org.talend.core.model.components.ComponentProviderInfo)1