Search in sources :

Example 1 with IProcessConvertService

use of org.talend.designer.core.convert.IProcessConvertService in project tdi-studio-se by Talend.

the class DesignerCoreService method getProcessFromItemByExtendion.

public IProcess getProcessFromItemByExtendion(Item item, boolean loadScreenshots) {
    IProcess process = null;
    List<IProcessConvertService> processConvertServices = ProcessConvertManager.getInstance().extractAllConvertServices();
    for (IProcessConvertService service : processConvertServices) {
        process = service.getProcessFromItem(item, loadScreenshots);
        if (process != null) {
            break;
        }
    }
    return process;
}
Also used : IProcessConvertService(org.talend.designer.core.convert.IProcessConvertService) IProcess(org.talend.core.model.process.IProcess)

Aggregations

IProcess (org.talend.core.model.process.IProcess)1 IProcessConvertService (org.talend.designer.core.convert.IProcessConvertService)1