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