Search in sources :

Example 1 with AnalyzeColumnSetAction

use of org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnSetAction in project tdq-studio-se by Talend.

the class OverviewResultPage method runTableAnalysis.

/**
 * run TableAnalysis with view name.
 *
 * @param viewName
 */
protected void runTableAnalysis(String viewName) {
    Package parentPack = (Package) currentSelectionSchemaIndicator.getAnalyzedElement();
    TdView tdView = getView(parentPack, viewName);
    if (null == tdView) {
        FolderNodeHelper.getTableFolderNode(parentPack).loadChildren();
        tdView = getView(parentPack, viewName);
    }
    DBViewRepNode dbViewRepNode = RepositoryNodeHelper.recursiveFindTdView(tdView);
    new AnalyzeColumnSetAction(dbViewRepNode).run();
}
Also used : TdView(org.talend.cwm.relational.TdView) AnalyzeColumnSetAction(org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnSetAction) Package(orgomg.cwm.objectmodel.core.Package) DBViewRepNode(org.talend.dq.nodes.DBViewRepNode)

Example 2 with AnalyzeColumnSetAction

use of org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnSetAction in project tdq-studio-se by Talend.

the class AnalyzeColumnProvider method init.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.navigator.CommonActionProvider#init(org.eclipse.ui.navigator.ICommonActionExtensionSite)
     */
@Override
public void init(ICommonActionExtensionSite site) {
    if (site.getViewSite() instanceof ICommonViewerWorkbenchSite) {
        analyzeColumnAction = new AnalyzeColumnAction();
        analyzeColumnSetAction = new AnalyzeColumnSetAction();
    }
}
Also used : AnalyzeColumnAction(org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnAction) AnalyzeColumnSetAction(org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnSetAction) ICommonViewerWorkbenchSite(org.eclipse.ui.navigator.ICommonViewerWorkbenchSite)

Aggregations

AnalyzeColumnSetAction (org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnSetAction)2 ICommonViewerWorkbenchSite (org.eclipse.ui.navigator.ICommonViewerWorkbenchSite)1 TdView (org.talend.cwm.relational.TdView)1 AnalyzeColumnAction (org.talend.dataprofiler.core.ui.action.actions.AnalyzeColumnAction)1 DBViewRepNode (org.talend.dq.nodes.DBViewRepNode)1 Package (orgomg.cwm.objectmodel.core.Package)1