Search in sources :

Example 1 with AbstractColumnDropTree

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);
        }
    }
}
Also used : AbstractColumnDropTree(org.talend.dataprofiler.core.ui.editor.composite.AbstractColumnDropTree)

Example 2 with AbstractColumnDropTree

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);
            }
        }
    }
}
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)

Aggregations

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