Search in sources :

Example 16 with ElementParameterTypeImpl

use of org.talend.designer.core.model.utils.emf.talendfile.impl.ElementParameterTypeImpl in project tdi-studio-se by Talend.

the class AddConnectionVersionForJobsettingMigrationTask method setParameterValue.

private void setParameterValue(EList elementParameter, String paramName, String paramValue) {
    for (int i = 0; i < elementParameter.size(); i++) {
        final Object object = elementParameter.get(i);
        if (object instanceof ElementParameterTypeImpl) {
            ElementParameterTypeImpl parameterType = (ElementParameterTypeImpl) object;
            String name = parameterType.getName();
            if (paramName.equals(name)) {
                parameterType.setValue(paramValue);
            }
        }
    }
}
Also used : ElementParameterTypeImpl(org.talend.designer.core.model.utils.emf.talendfile.impl.ElementParameterTypeImpl)

Aggregations

ElementParameterTypeImpl (org.talend.designer.core.model.utils.emf.talendfile.impl.ElementParameterTypeImpl)16 PersistenceException (org.talend.commons.exception.PersistenceException)11 EList (org.eclipse.emf.common.util.EList)7 ProcessType (org.talend.designer.core.model.utils.emf.talendfile.ProcessType)6 List (java.util.List)5 ImplicitContextSettings (org.talend.core.model.properties.ImplicitContextSettings)5 StatAndLogsSettings (org.talend.core.model.properties.StatAndLogsSettings)5 ParametersType (org.talend.designer.core.model.utils.emf.talendfile.ParametersType)5 IProxyRepositoryFactory (org.talend.repository.model.IProxyRepositoryFactory)5 ElementParameterType (org.talend.designer.core.model.utils.emf.talendfile.ElementParameterType)2 NodeType (org.talend.designer.core.model.utils.emf.talendfile.NodeType)1 ElementValueTypeImpl (org.talend.designer.core.model.utils.emf.talendfile.impl.ElementValueTypeImpl)1 IRepositoryService (org.talend.repository.model.IRepositoryService)1