use of org.talend.designer.core.generic.model.GenericElementParameter in project tdi-studio-se by Talend.
the class ComponentRefController method getRefNodes.
private List<INode> getRefNodes(IElementParameter param, ComponentReferenceProperties props) {
callBeforeActive(param);
List<INode> refNodes = new ArrayList<>();
if (param instanceof GenericElementParameter) {
GenericElementParameter gParameter = (GenericElementParameter) param;
if (gParameter != null && gParameter.getElement() != null && gParameter.getElement() instanceof Node) {
Node node = (Node) gParameter.getElement();
refNodes = (List<INode>) node.getProcess().getNodesOfType(props.referenceDefinitionName.getStringValue());
}
}
return refNodes;
}
Aggregations