Search in sources :

Example 1 with ExportMatchRuleAction

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

the class MatchAnalysisEditor method addPages.

@Override
protected void addPages() {
    super.addPages();
    TdEditorToolBar toolbar = getToolBar();
    if (toolbar != null) {
        importMatchRuleAction = new ImportMatchRuleAction(getMasterPage());
        // $NON-NLS-1$
        importMatchRuleAction.setToolTipText(DefaultMessagesImpl.getString("MatchAnalysisEditor.importMatchRule"));
        toolbar.addActions(importMatchRuleAction);
        // when there are some keys in the analysis
        if (getMasterPage().getCurrentModelElement().getResults() != null) {
            exportMatchRuleAction = new ExportMatchRuleAction(MatchRuleAnlaysisUtils.getRecordMatchIndicatorFromAna(getMasterPage().getCurrentModelElement()));
            // $NON-NLS-1$
            exportMatchRuleAction.setToolTipText(DefaultMessagesImpl.getString("MatchAnalysisEditor.exportMatchRule"));
            toolbar.addActions(exportMatchRuleAction);
        }
    }
}
Also used : ImportMatchRuleAction(org.talend.dataprofiler.core.ui.action.actions.ImportMatchRuleAction) ExportMatchRuleAction(org.talend.dataprofiler.core.ui.action.actions.ExportMatchRuleAction) TdEditorToolBar(org.talend.dataprofiler.core.ui.editor.TdEditorToolBar)

Aggregations

ExportMatchRuleAction (org.talend.dataprofiler.core.ui.action.actions.ExportMatchRuleAction)1 ImportMatchRuleAction (org.talend.dataprofiler.core.ui.action.actions.ImportMatchRuleAction)1 TdEditorToolBar (org.talend.dataprofiler.core.ui.editor.TdEditorToolBar)1