Search in sources :

Example 1 with AnaMatchSurvivorSection

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

the class MatchAnalysisDetailsPage method createMatchAndSurvivorKeySection.

private void createMatchAndSurvivorKeySection() {
    matchAndSurvivorKeySection = new AnaMatchSurvivorSection(form, topComp, Section.TWISTIE | Section.TITLE_BAR | Section.EXPANDED, toolkit, getCurrentModelElement());
    RecordMatchingIndicator recordMatchingIndicator = MatchRuleAnlaysisUtils.getRecordMatchIndicatorFromAna(getCurrentModelElement());
    matchAndSurvivorKeySection.setMatchRuleDef(recordMatchingIndicator.getBuiltInMatchRuleDefinition());
    matchAndSurvivorKeySection.setAddColumn(!selectAlgorithmSection.isVSRMode());
    matchAndSurvivorKeySection.setColumnNameInput(getAllColumnsToKeyMap());
    matchAndSurvivorKeySection.createContent();
    registerSection(matchAndSurvivorKeySection.getSection());
    matchAndSurvivorKeySection.addPropertyChangeListener(this);
    matchAndSurvivorKeySection.changeSectionDisStatus(!selectAlgorithmSection.isVSRMode());
    matchAndSurvivorKeySection.getSection().setExpanded(getExpandedStatus(matchAndSurvivorKeySection.getSection().getText()));
    matchAndSurvivorKeySection.setIsNeedSubChart(true);
    selectAlgorithmSection.setAnaMatchSurvivorSection(matchAndSurvivorKeySection);
    if (selectAlgorithmSection.isVSRMode()) {
        // Hide the section in case of vsr.
        matchAndSurvivorKeySection.changeSectionDisStatus(false);
    } else {
        matchAndSurvivorKeySection.redrawnContent();
    }
}
Also used : AnaMatchSurvivorSection(org.talend.dataquality.record.linkage.ui.section.AnaMatchSurvivorSection) RecordMatchingIndicator(org.talend.dataquality.indicators.columnset.RecordMatchingIndicator)

Aggregations

RecordMatchingIndicator (org.talend.dataquality.indicators.columnset.RecordMatchingIndicator)1 AnaMatchSurvivorSection (org.talend.dataquality.record.linkage.ui.section.AnaMatchSurvivorSection)1