use of org.talend.dataprofiler.core.ui.editor.composite.AbstractPagePart in project tdq-studio-se by Talend.
the class BusinessRuleAnalysisResultPage method createResultSection.
@Override
protected void createResultSection(Composite parent) {
// ADD gdbu 2011-3-4 bug 19242
AbstractPagePart treeViewer = masterPage.getTreeViewer();
if (treeViewer != null && treeViewer instanceof AnalysisTableTreeViewer) {
tableTreeViewer = (AnalysisTableTreeViewer) treeViewer;
}
// ~
// $NON-NLS-1$
resultSection = createSection(form, parent, DefaultMessagesImpl.getString("TableAnalysisResultPage.analysisResult"), null);
sectionClient = toolkit.createComposite(resultSection);
sectionClient.setLayout(new GridLayout());
sectionClient.setLayoutData(new GridData(GridData.FILL_BOTH));
dynamicList.clear();
for (final TableIndicator tableIndicator : tableTreeViewer.getTableIndicator()) {
ExpandableComposite exComp = toolkit.createExpandableComposite(sectionClient, ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT | ExpandableComposite.EXPANDED);
// bug 10541 fix by zshen,Change some character set to be proper to add view in the table anasys
if (tableIndicator.isTable()) {
exComp.setText(DefaultMessagesImpl.getString("TableAnalysisResultPage.table", // $NON-NLS-1$
tableIndicator.getColumnSet().getName()));
} else {
exComp.setText(DefaultMessagesImpl.getString("TableAnalysisResultPage.view", // $NON-NLS-1$
tableIndicator.getColumnSet().getName()));
}
exComp.setLayout(new GridLayout());
exComp.setLayoutData(new GridData(GridData.FILL_BOTH));
// MOD xqliu 2009-06-23 bug 7481
exComp.setExpanded(EditorPreferencePage.isUnfoldingAnalyzedEelementsResultPage());
// ~
final Composite comp = toolkit.createComposite(exComp);
comp.setLayout(new GridLayout());
comp.setLayoutData(new GridData(GridData.FILL_BOTH));
exComp.setClient(comp);
createResultDataComposite(comp, tableIndicator);
exComp.addExpansionListener(new ExpansionAdapter() {
@Override
public void expansionStateChanged(ExpansionEvent e) {
form.reflow(true);
}
});
}
resultSection.setClient(sectionClient);
}
Aggregations