use of org.talend.dq.nodes.analysis.AbstractAnalysisNode in project tdq-studio-se by Talend.
the class AnalysisTypeContentProvider method hasChildren.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object)
*/
public boolean hasChildren(Object element) {
AbstractAnalysisNode analysisTypeNode = (AnalysisTypeNode) element;
Object[] childrenNode = analysisTypeNode.getChildren();
return !(childrenNode == null || childrenNode.length == 0);
}
use of org.talend.dq.nodes.analysis.AbstractAnalysisNode in project tdq-studio-se by Talend.
the class AnalysisTypeContentProvider method getChildren.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object)
*/
public Object[] getChildren(Object parentElement) {
AbstractAnalysisNode analysisNode = (AnalysisTypeNode) parentElement;
Object[] childrenNode = analysisNode.getChildren();
if (childrenNode == null || childrenNode.length == 0) {
return new Object[0];
} else {
return childrenNode;
}
}
Aggregations