table.setHeaderVisible(true);; table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 4)); table.addSelectionListener(new SelectionAdapter() { @Override
table.setHeaderVisible(true); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 5)); table.addSelectionListener(new SelectionAdapter() { @Override
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 2)); table.addSelectionListener(new SelectionAdapter() { @Override
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 4)); table.addSelectionListener(new SelectionAdapter() { @Override
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6)); table.setHeaderVisible(true); table.addSelectionListener(new SelectionAdapter() {
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 3)); table.setHeaderVisible(true); table.addSelectionListener(new SelectionAdapter() {
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6)); table.setHeaderVisible(true); table.addSelectionListener(new SelectionAdapter() {
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 3)); table.setHeaderVisible(true); table.addSelectionListener(new SelectionAdapter() {
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 2)); table.addSelectionListener(new SelectionAdapter() { @Override
@Override protected void initData(Composite composite) { Table table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.VIRTUAL); table.setHeaderVisible(true); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 5)); table.setLinesVisible(true); EditListener listener = new EditListener(table, false); table.addListener(SWT.MouseDown, listener); tblclmnNewColumn = new TableColumn(table, SWT.NONE); tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE)); tblclmnNewColumn.setWidth(200); String[] data = result.getResult().split("\n"); for(int i = 0 ; i < data.length; i ++){ TableItem item = new TableItem(table, SWT.NONE); item.setText(data[i]); } }
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 5)); table.setHeaderVisible(true); table.setLinesVisible(true);
protected void initData(Composite composite) { Table table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 5)); table.setHeaderVisible(true); table.setLinesVisible(true); EditListener listener = new EditListener(table, false); table.addListener(SWT.MouseDown, listener); tblclmnNewColumn = new TableColumn(table, SWT.NONE); tblclmnNewColumn.setWidth(132); tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.FIELD)); tblclmnMember = new TableColumn(table, SWT.NONE); tblclmnMember.setWidth(236); tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.VALUE)); String[] data = result.getResult().split("\n"); for(int i = 0 ; i < data.length/2; i ++){ TableItem item = new TableItem(table, SWT.NONE); String[] values = new String[]{data[i*2], data[i*2+1]}; item.setText(values); } }
fdTable.right = new FormAttachment( 100, 0 ); fdTable.bottom = new FormAttachment( wOK, -Const.MARGIN * 2 ); table.setLayoutData( fdTable );
EditListener listener = new EditListener(table, false, true); table.addListener(SWT.MouseDown, listener); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
fdTable.top = new FormAttachment( 0, 0 ); fdTable.bottom = new FormAttachment( 100, 0 ); table.setLayoutData( fdTable );
@Override protected StructuredViewer createViewer(Composite parent){ //by default return a checkbox table viewer Table table = new Table(parent, SWT.BORDER | SWT.SINGLE | SWT.CHECK); GridData gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 150; gd.widthHint = 250; table.setLayoutData(gd); return new CheckboxTableViewer(table); }
protected void createTable(Composite parent) { availableJARsViewer = owner.createAvailableJARsViewer(parent); GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL); availableJARsViewer.getTable().setLayoutData(gd); availableJarsProvider = new AvailableJarsProvider(); availableJARsViewer.setContentProvider(availableJarsProvider); availableJARsViewer.setLabelProvider(availableJarsProvider); addTableListeners(); }
private void addProjectSection(Composite composite) { table = new Table(composite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); tableViewer = new TableViewer(table); table.setLayout(new TableLayout()); GridData data = new GridData(GridData.FILL_BOTH); data.heightHint = 300; table.setLayoutData(data); tableViewer.setContentProvider(new ProjectContentProvider()); tableViewer.setLabelProvider(new ExportProjectSetLabelProvider()); }
public TableViewer createTable(final Composite parent, final WritableList<IDependencyRelation> descriptions) { final TableViewer table = new TableViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION); createColumns(table); table.getTable().setLayoutData(new GridData(GridData.FILL_BOTH)); table.setContentProvider(new ObservableListContentProvider()); table.setInput(descriptions); table.setLabelProvider(new TableLabelProvider()); ColumnViewerToolTipSupport.enableFor(table); return table; } }
private void addProjectSection(Composite composite) { table = new Table(composite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); tableViewer = new TableViewer(table); table.setLayout(new TableLayout()); GridData data = new GridData(GridData.FILL_BOTH); data.heightHint = 300; table.setLayoutData(data); tableViewer.setContentProvider(new ProjectContentProvider()); tableViewer.setLabelProvider(new ExportProjectSetLabelProvider()); tableViewer.setComparator(new ResourceComparator(ResourceComparator.NAME)); }