Search in sources :

Example 1 with MatchRuleTableComposite

use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.

the class MatchingKeySection method createMatchKeyFromCurrentMatchRule.

/**
 * Add a new key definition on current selected match rule.
 *
 * @param column
 */
public void createMatchKeyFromCurrentMatchRule(String column) {
    MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getCurrentMatchRuleTableComposite();
    matchRuleTableComp.addKeyDefinition(column, matchRuleTableComp.getMatchRule().getMatchKeys());
}
Also used : MatchRuleTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite)

Example 2 with MatchRuleTableComposite

use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.

the class MatchingKeySection method getMatchRule.

/**
 * DOC zhao Comment method "getMatchRule".
 *
 * @param tabItem
 * @return
 */
protected MatchRule getMatchRule(CTabItem tabItem) {
    MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getMatchRuleComposite(tabItem);
    MatchRule matchRule = matchRuleTableComp.getMatchRule();
    return matchRule;
}
Also used : MatchRuleTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite) MatchRule(org.talend.dataquality.rules.MatchRule)

Example 3 with MatchRuleTableComposite

use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.

the class MatchingKeySection method remoteKeyDefinition.

/**
 * DOC zhao Comment method "remoteKeyDefinition".
 *
 * @param column
 * @param oneTab
 */
protected void remoteKeyDefinition(String column, CTabItem oneTab) {
    MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getMatchRuleComposite(oneTab);
    matchRuleTableComp.removeKeyDefinition(column, matchRuleTableComp.getMatchRule().getMatchKeys());
}
Also used : MatchRuleTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite)

Example 4 with MatchRuleTableComposite

use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.

the class MatchKeyDefinitionSection method removeMatchKeyFromCurrentMatchRule.

/*
     * (non-Javadoc)
     * 
     * @see
     * org.talend.dataquality.record.linkage.ui.section.MatchingKeySection#removeMatchKeyFromCurrentMatchRule(java.lang
     * .String)
     */
@Override
public void removeMatchKeyFromCurrentMatchRule(MatchKeyDefinition columnkey) {
    MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getCurrentMatchRuleTableComposite();
    matchRuleTableComp.removeKeyDefinition(columnkey, matchRuleTableComp.getMatchRule().getMatchKeys());
}
Also used : MatchRuleTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite)

Example 5 with MatchRuleTableComposite

use of org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite in project tdq-studio-se by Talend.

the class MatchKeyDefinitionSection method createMatchKeyFromCurrentMatchRule.

/*
     * (non-Javadoc)
     * 
     * @see
     * org.talend.dataquality.record.linkage.ui.section.MatchingKeySection#createMatchKeyFromCurrentMatchRule(java.lang
     * .String)
     */
@Override
public void createMatchKeyFromCurrentMatchRule(String column) {
    MatchRuleTableComposite matchRuleTableComp = (MatchRuleTableComposite) getCurrentMatchRuleTableComposite();
    matchRuleTableComp.addKeyDefinition(column, matchRuleTableComp.getMatchRule().getMatchKeys());
}
Also used : MatchRuleTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite)

Aggregations

MatchRuleTableComposite (org.talend.dataquality.record.linkage.ui.composite.MatchRuleTableComposite)9 MatchRule (org.talend.dataquality.rules.MatchRule)2 CTabItem (org.eclipse.swt.custom.CTabItem)1 MatchKeyDefinition (org.talend.dataquality.rules.MatchKeyDefinition)1