use of org.talend.dataprofiler.core.ui.editor.composite.AbstractColumnDropTree in project tdq-studio-se by Talend.
the class AbstractAnalysisMetadataPage method updateAnalysisTree.
/**
* when rename the related connection ,it will reload connection combo,also need to update TreeViewer,so that avoid
* some old column RepositoryNode instance .if it is not dirty before updating,should keep the not dirty satus.
*/
protected void updateAnalysisTree() {
AbstractColumnDropTree treeViewer = getTreeViewer();
if (treeViewer != null) {
boolean beforeUpdateDirty = treeViewer.isDirty();
treeViewer.updateModelViewer();
if (!beforeUpdateDirty) {
treeViewer.setDirty(false);
}
}
}
use of org.talend.dataprofiler.core.ui.editor.composite.AbstractColumnDropTree 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);
}
}
}
}
Aggregations