Search in sources :

Example 1 with AbstractAnalysisNode

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);
}
Also used : AbstractAnalysisNode(org.talend.dq.nodes.analysis.AbstractAnalysisNode) AnalysisTypeNode(org.talend.dataprofiler.core.model.nodes.analysis.AnalysisTypeNode)

Example 2 with AbstractAnalysisNode

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;
    }
}
Also used : AbstractAnalysisNode(org.talend.dq.nodes.analysis.AbstractAnalysisNode) AnalysisTypeNode(org.talend.dataprofiler.core.model.nodes.analysis.AnalysisTypeNode)

Aggregations

AnalysisTypeNode (org.talend.dataprofiler.core.model.nodes.analysis.AnalysisTypeNode)2 AbstractAnalysisNode (org.talend.dq.nodes.analysis.AbstractAnalysisNode)2