Search in sources :

Example 1 with SurvivorshipTableComposite

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

the class SurvivorshipDefinitionSection method createSubContent.

@Override
protected Composite createSubContent(Composite sectionClient) {
    Composite ruleComp = toolkit.createComposite(sectionClient, SWT.NONE);
    GridData data = new GridData(GridData.FILL_BOTH);
    ruleComp.setLayoutData(data);
    GridLayout gridLayout = new GridLayout(1, true);
    gridLayout.marginWidth = 0;
    gridLayout.marginHeight = 0;
    ruleComp.setLayout(gridLayout);
    tableComposite = new SurvivorshipTableComposite(ruleComp, SWT.NO_FOCUS);
    tableComposite.addPropertyChangeListener(this);
    tableComposite.setLayout(gridLayout);
    tableComposite.setLayoutData(data);
    tableComposite.createContent();
    section.setExpanded(true);
    tableComposite.serViewerSorter(new KeyDefinitionTableViewerSorter<SurvivorshipKeyDefinition>(this.matchRuleDef.getSurvivorshipKeys()));
    initTableInput();
    return ruleComp;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) SurvivorshipTableComposite(org.talend.dataquality.record.linkage.ui.composite.SurvivorshipTableComposite) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) SurvivorshipKeyDefinition(org.talend.dataquality.rules.SurvivorshipKeyDefinition) SurvivorshipTableComposite(org.talend.dataquality.record.linkage.ui.composite.SurvivorshipTableComposite)

Aggregations

GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 SurvivorshipTableComposite (org.talend.dataquality.record.linkage.ui.composite.SurvivorshipTableComposite)1 SurvivorshipKeyDefinition (org.talend.dataquality.rules.SurvivorshipKeyDefinition)1