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