Search in sources :

Example 1 with HL7OutputTableViewerProvider

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);
}
Also used : Group(org.eclipse.swt.widgets.Group) Table(org.eclipse.swt.widgets.Table) IMetadataTable(org.talend.core.model.metadata.IMetadataTable) HL7OutputTableViewerProvider(org.talend.designer.hl7.ui.edit.HL7OutputTableViewerProvider) GridData(org.eclipse.swt.layout.GridData) TableViewer(org.eclipse.jface.viewers.TableViewer) TableColumn(org.eclipse.swt.widgets.TableColumn)

Aggregations

TableViewer (org.eclipse.jface.viewers.TableViewer)1 GridData (org.eclipse.swt.layout.GridData)1 Group (org.eclipse.swt.widgets.Group)1 Table (org.eclipse.swt.widgets.Table)1 TableColumn (org.eclipse.swt.widgets.TableColumn)1 IMetadataTable (org.talend.core.model.metadata.IMetadataTable)1 HL7OutputTableViewerProvider (org.talend.designer.hl7.ui.edit.HL7OutputTableViewerProvider)1