Search in sources :

Example 1 with AnalysisColumnTreeViewer

use of org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer in project tdq-studio-se by Talend.

the class OpenIndicatorSelectorAction method run.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.action.Action#run()
     */
@Override
public void run() {
    AbstractColumnDropTree treeViewer = page.getTreeViewer();
    if (treeViewer instanceof AnalysisColumnTreeViewer) {
        AnalysisColumnTreeViewer columnTreeViewer = (AnalysisColumnTreeViewer) treeViewer;
        ModelElementIndicator[] modelElementIndicator = columnTreeViewer.openIndicatorSelectDialog(null);
        if (modelElementIndicator != null) {
            page.refreshCurrentTreeViewer(modelElementIndicator);
            if (columnTreeViewer.isGridPreviewColumnMoved()) {
                page.refreshPreviewTable(true);
            }
        }
    }
}
Also used : AbstractColumnDropTree(org.talend.dataprofiler.core.ui.editor.composite.AbstractColumnDropTree) AnalysisColumnTreeViewer(org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer) ModelElementIndicator(org.talend.dataprofiler.core.model.ModelElementIndicator)

Example 2 with AnalysisColumnTreeViewer

use of org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer in project tdq-studio-se by Talend.

the class ColumnAnalysisDetailsPage method createPaginationTree.

/**
 * DOC zshen Comment method "createPaginationTree".
 *
 * @param topComp1
 */
private void createPaginationTree(Composite topComp1) {
    tree = toolkit.createComposite(topComp1, SWT.NONE);
    tree.setBackgroundMode(SWT.INHERIT_DEFAULT);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(tree);
    tree.setLayout(new GridLayout());
    ((GridData) tree.getLayoutData()).heightHint = TREE_MAX_LENGTH;
    treeViewer = new AnalysisColumnTreeViewer(tree, this);
    treeViewer.addObserver(sampleTable);
    sampleTable.addObserver(treeViewer);
    treeViewer.setDirty(false);
    treeViewer.addPropertyChangeListener(this);
    // Added TDQ-9272 : give the execute language to it
    treeViewer.setLanguage(getCurrentModelElement().getParameters().getExecutionLanguage());
    // pagination compoent
    computePagination();
// ~
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) AnalysisColumnTreeViewer(org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer)

Aggregations

AnalysisColumnTreeViewer (org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer)2 GridLayout (org.eclipse.swt.layout.GridLayout)1 ModelElementIndicator (org.talend.dataprofiler.core.model.ModelElementIndicator)1 AbstractColumnDropTree (org.talend.dataprofiler.core.ui.editor.composite.AbstractColumnDropTree)1