use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.
the class MatchingKeySection method checkAndRemoveEmptyMatchRule.
/**
* check and remove empty match rule
*/
protected void checkAndRemoveEmptyMatchRule(CTabItem theTab) {
MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getMatchRuleComposite(theTab);
EList<MatchKeyDefinition> matchKeys = matchRuleTableComp.getMatchRule().getMatchKeys();
if (matchKeys.size() <= 0) {
getMatchRuleList().remove(matchRuleTableComp.getMatchRule());
}
}
use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.
the class MatchingKeySection method getCurrentMatchRule.
protected MatchRule getCurrentMatchRule() throws Exception {
CTabItem currentTabItem = ruleFolder.getSelection();
if (currentTabItem == null) {
// $NON-NLS-1$
throw new Exception(DefaultMessagesImpl.getString("MatchingKeySection.ONE_MATCH_RULE_REQUIRED"));
}
MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getMatchRuleComposite(currentTabItem);
MatchRule matchRule = matchRuleTableComp.getMatchRule();
return matchRule;
}
use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.
the class MatchingKeySection method removeMatchKeyFromCurrentMatchRule.
/**
* Remove the match key by column name from current selected match rule tab.
*
* @param column
*/
public void removeMatchKeyFromCurrentMatchRule(MatchKeyDefinition columnkey) {
MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getCurrentMatchRuleTableComposite();
matchRuleTableComp.removeKeyDefinition(columnkey, matchRuleTableComp.getMatchRule().getMatchKeys());
}
use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.
the class MatchingKeySection method removeMatchKeyFromCurrentMatchRule.
/**
* Remove the match key by column name from current selected match rule tab.
*
* @param column
*/
public void removeMatchKeyFromCurrentMatchRule(String column) {
MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getCurrentMatchRuleTableComposite();
matchRuleTableComp.removeKeyDefinition(column, matchRuleTableComp.getMatchRule().getMatchKeys());
}
Aggregations