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