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);
}
}
}
}
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();
// ~
}
Aggregations