use of org.talend.designer.hl7.ui.edit.HL7OutputTableViewerProvider in project tdi-studio-se by Talend.
the class HL7OutputUI method addSchemaViewer.
private void addSchemaViewer(final Composite mainComposite, final int width, final int height) {
// Group Schema Viewer
final Group group = Form.createGroup(mainComposite, 1, "Linker Source", height);
// add by wzhang. add a combo for tFileOutputMSXML.
createCombo(group);
schemaViewer = new TableViewer(group);
// schemaViewer.set
// schemaViewer.getTable().setBackground(schemaViewer.getTable().getDisplay().getSystemColor(SWT.COLOR_WHITE));
HL7OutputTableViewerProvider provider = new HL7OutputTableViewerProvider();
schemaViewer.setContentProvider(provider);
schemaViewer.setLabelProvider(provider);
GridData data2 = new GridData(GridData.FILL_BOTH);
Table table = schemaViewer.getTable();
// see bug 7087
if (canModify || isRespo) {
table.setEnabled(false);
}
// table.setLinesVisible(true);
table.setHeaderVisible(true);
TableColumn column1 = new TableColumn(table, SWT.LEFT);
column1.setText("Schema List");
column1.setWidth(100);
table.setLayoutData(data2);
}
Aggregations