Search in sources :

Example 1 with MatchKeyAndSurvivorTableComposite

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

the class AnaMatchSurvivorSection method getMatchRule.

/*
     * (non-Javadoc)
     * 
     * @see
     * org.talend.dataquality.record.linkage.ui.section.MatchingKeySection#getMatchRule(org.eclipse.swt.custom.CTabItem)
     */
@Override
protected MatchRule getMatchRule(CTabItem tabItem) {
    MatchKeyAndSurvivorTableComposite matchRuleTableComp = (MatchKeyAndSurvivorTableComposite) getMatchRuleComposite(tabItem);
    MatchRule matchRule = matchRuleTableComp.getMatchRule();
    return matchRule;
}
Also used : MatchKeyAndSurvivorTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchKeyAndSurvivorTableComposite) MatchRule(org.talend.dataquality.rules.MatchRule)

Example 2 with MatchKeyAndSurvivorTableComposite

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

the class AnaMatchSurvivorSection method removeMatchKeyFromCurrentMatchRule.

@Override
public void removeMatchKeyFromCurrentMatchRule(String column) {
    MatchKeyAndSurvivorTableComposite matchRuleTableComp = (MatchKeyAndSurvivorTableComposite) getCurrentMatchRuleTableComposite();
    MatchRule matchRule = matchRuleTableComp.getMatchRule();
    List<MatchKeyAndSurvivorDefinition> matchAndSurvDefList = matchRuleWithSurvMap.get(matchRule);
    matchRuleTableComp.removeKeyDefinition(column, matchAndSurvDefList);
}
Also used : MatchKeyAndSurvivorTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchKeyAndSurvivorTableComposite) MatchRule(org.talend.dataquality.rules.MatchRule) MatchKeyAndSurvivorDefinition(org.talend.dataquality.record.linkage.ui.composite.tableviewer.definition.MatchKeyAndSurvivorDefinition)

Example 3 with MatchKeyAndSurvivorTableComposite

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

the class AnaMatchSurvivorSection method removeMatchKeyFromCurrentMatchRule.

public void removeMatchKeyFromCurrentMatchRule(MatchKeyAndSurvivorDefinition mAndSDefition) {
    MatchKeyAndSurvivorTableComposite matchRuleTableComp = (MatchKeyAndSurvivorTableComposite) getCurrentMatchRuleTableComposite();
    matchRuleTableComp.removeKeyDefinition(mAndSDefition, matchRuleWithSurvMap.get(matchRuleTableComp.getMatchRule()));
}
Also used : MatchKeyAndSurvivorTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchKeyAndSurvivorTableComposite)

Example 4 with MatchKeyAndSurvivorTableComposite

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

the class AnaMatchSurvivorSection method remoteKeyDefinition.

/*
     * (non-Javadoc)
     * 
     * @see org.talend.dataquality.record.linkage.ui.section.MatchingKeySection#remoteKeyDefinition(java.lang.String,
     * org.eclipse.swt.custom.CTabItem)
     */
@Override
protected void remoteKeyDefinition(String column, CTabItem oneTab) {
    MatchKeyAndSurvivorTableComposite matchRuleTableComp = (MatchKeyAndSurvivorTableComposite) getMatchRuleComposite(oneTab);
    List<MatchKeyAndSurvivorDefinition> matchAndSurvDefList = matchRuleWithSurvMap.get(getMatchRule(oneTab));
    matchRuleTableComp.removeKeyDefinition(column, matchAndSurvDefList);
}
Also used : MatchKeyAndSurvivorTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchKeyAndSurvivorTableComposite) MatchKeyAndSurvivorDefinition(org.talend.dataquality.record.linkage.ui.composite.tableviewer.definition.MatchKeyAndSurvivorDefinition)

Example 5 with MatchKeyAndSurvivorTableComposite

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

the class AnaMatchSurvivorSection method getCurrentTabDefinitions.

/*
     * (non-Javadoc)
     * 
     * @see org.talend.dataquality.record.linkage.ui.section.MatchingKeySection#getCurrentTabDefinitions()
     */
@Override
protected List<?> getCurrentTabDefinitions() {
    MatchKeyAndSurvivorTableComposite matchRuleTableComp = (MatchKeyAndSurvivorTableComposite) getCurrentMatchRuleTableComposite();
    MatchRule matchRule = matchRuleTableComp.getMatchRule();
    List<MatchKeyAndSurvivorDefinition> matchAndSurvDefList = matchRuleWithSurvMap.get(matchRule);
    return matchAndSurvDefList;
}
Also used : MatchKeyAndSurvivorTableComposite(org.talend.dataquality.record.linkage.ui.composite.MatchKeyAndSurvivorTableComposite) MatchRule(org.talend.dataquality.rules.MatchRule) MatchKeyAndSurvivorDefinition(org.talend.dataquality.record.linkage.ui.composite.tableviewer.definition.MatchKeyAndSurvivorDefinition)

Aggregations

MatchKeyAndSurvivorTableComposite (org.talend.dataquality.record.linkage.ui.composite.MatchKeyAndSurvivorTableComposite)7 MatchKeyAndSurvivorDefinition (org.talend.dataquality.record.linkage.ui.composite.tableviewer.definition.MatchKeyAndSurvivorDefinition)4 MatchRule (org.talend.dataquality.rules.MatchRule)3