Search in sources :

Example 1 with MatchAnalysisEditor

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

the class ExportMatchRuleAction method run.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.cheatsheets.ICheatSheetAction#run(java.lang.String[],
     * org.eclipse.ui.cheatsheets.ICheatSheetManager)
     */
public void run(String[] arg0, ICheatSheetManager arg1) {
    IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
    if (editor instanceof MatchAnalysisEditor) {
        MatchAnalysisDetailsPage masterPage = (MatchAnalysisDetailsPage) ((MatchAnalysisEditor) editor).getMasterPage();
        RecordMatchingIndicator rmIndicator = MatchRuleAnlaysisUtils.getRecordMatchIndicatorFromAna(masterPage.getCurrentModelElement());
        this.matchRule = rmIndicator.getBuiltInMatchRuleDefinition();
        this.run();
    }
}
Also used : IEditorPart(org.eclipse.ui.IEditorPart) RecordMatchingIndicator(org.talend.dataquality.indicators.columnset.RecordMatchingIndicator) MatchAnalysisDetailsPage(org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisDetailsPage) MatchAnalysisEditor(org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisEditor)

Example 2 with MatchAnalysisEditor

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

the class CreateNewConnectionForMatchAnalysisAction method run.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.cheatsheets.ICheatSheetAction#run(java.lang.String[],
     * org.eclipse.ui.cheatsheets.ICheatSheetManager)
     */
public void run(String[] arg0, ICheatSheetManager arg1) {
    ConnectionWizard connectionWizard = new ConnectionWizard(PlatformUI.getWorkbench(), null);
    connectionWizard.setForcePreviousAndNextButtons(true);
    WizardDialog dialog = new WizardDialog(null, connectionWizard);
    dialog.setPageSize(500, 200);
    dialog.open();
    IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
    if (editor instanceof MatchAnalysisEditor) {
        MatchAnalysisDetailsPage masterPage = (MatchAnalysisDetailsPage) ((MatchAnalysisEditor) editor).getMasterPage();
        if (masterPage.getAnalysisHandler() != null) {
            masterPage.openColumnsSelectionDialog(masterPage.getAnalysisHandler().getConnection());
        }
    }
}
Also used : ConnectionWizard(org.talend.dataprofiler.core.ui.wizard.analysis.connection.ConnectionWizard) IEditorPart(org.eclipse.ui.IEditorPart) WizardDialog(org.eclipse.jface.wizard.WizardDialog) MatchAnalysisDetailsPage(org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisDetailsPage) MatchAnalysisEditor(org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisEditor)

Example 3 with MatchAnalysisEditor

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

the class SelectDataForMatchAnalysisAction method run.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.cheatsheets.ICheatSheetAction#run(java.lang.String[],
     * org.eclipse.ui.cheatsheets.ICheatSheetManager)
     */
public void run(String[] arg0, ICheatSheetManager arg1) {
    IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
    if (editor instanceof MatchAnalysisEditor) {
        MatchAnalysisDetailsPage masterPage = (MatchAnalysisDetailsPage) ((MatchAnalysisEditor) editor).getMasterPage();
        masterPage.openColumnsSelectionDialog(null);
    }
}
Also used : IEditorPart(org.eclipse.ui.IEditorPart) MatchAnalysisDetailsPage(org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisDetailsPage) MatchAnalysisEditor(org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisEditor)

Aggregations

IEditorPart (org.eclipse.ui.IEditorPart)3 MatchAnalysisDetailsPage (org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisDetailsPage)3 MatchAnalysisEditor (org.talend.dataprofiler.core.ui.editor.analysis.MatchAnalysisEditor)3 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 ConnectionWizard (org.talend.dataprofiler.core.ui.wizard.analysis.connection.ConnectionWizard)1 RecordMatchingIndicator (org.talend.dataquality.indicators.columnset.RecordMatchingIndicator)1