@Test public void testTableColumnConfigurer() { final EventList<Color> source = GlazedLists.eventList(RGBNull); final TableFormat<Color> tableFormat = new ColorTableFormat(); final Table table = new Table(getShell(), SWT.CHECK); EventTableViewer<Color> viewer = new EventTableViewer<>(source, table, tableFormat); assertEquals(3, table.getColumnCount()); assertEquals("Red", table.getColumn(0).getText()); assertEquals(SWT.LEFT, table.getColumn(0).getAlignment()); assertEquals(80, table.getColumn(0).getWidth()); assertEquals(true, table.getColumn(0).getResizable()); assertEquals(null, table.getColumn(0).getToolTipText()); assertEquals("Green", table.getColumn(1).getText()); assertEquals(SWT.LEFT, table.getColumn(1).getAlignment()); assertEquals(100, table.getColumn(1).getWidth()); assertEquals(false, table.getColumn(1).getResizable()); assertEquals(null, table.getColumn(1).getToolTipText()); assertEquals("Blue", table.getColumn(2).getText()); assertEquals(SWT.CENTER, table.getColumn(2).getAlignment()); assertEquals(80, table.getColumn(2).getWidth()); assertEquals(true, table.getColumn(2).getResizable()); assertEquals("Blue Column", table.getColumn(2).getToolTipText()); viewer.dispose(); }
@Override public void dispose() { if (swtThreadSource != null) swtThreadSource.dispose(); super.dispose(); swtThreadSource = null; }
EventTableViewer extends DefaultEventTableViewer<E> { @Override public void dispose() { if (swtThreadSource != null) swtThreadSource.dispose(); super.dispose(); swtThreadSource = null; } }
EventTableViewer extends DefaultEventTableViewer<E> { @Override public void dispose() { if (swtThreadSource != null) swtThreadSource.dispose(); super.dispose(); swtThreadSource = null; } @Deprecated  EventTableViewer(EventList<E> source, Table table, String[] propertyNames, String[] columnLabels);  EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat);  EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); private  EventTableViewer(EventList<E> source, EventList<E> swtProxySource, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); }
EventTableViewer extends DefaultEventTableViewer<E> { @Override public void dispose() { if (swtThreadSource != null) swtThreadSource.dispose(); super.dispose(); swtThreadSource = null; } @Deprecated  EventTableViewer(EventList<E> source, Table table, String[] propertyNames, String[] columnLabels);  EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat);  EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); private  EventTableViewer(EventList<E> source, EventList<E> swtProxySource, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); @Override void dispose(); }
EventTableViewer extends DefaultEventTableViewer<E> { @Override public void dispose() { if (swtThreadSource != null) swtThreadSource.dispose(); super.dispose(); swtThreadSource = null; } @Deprecated  EventTableViewer(EventList<E> source, Table table, String[] propertyNames, String[] columnLabels);  EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat);  EventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); private  EventTableViewer(EventList<E> source, EventList<E> swtProxySource, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); @Override void dispose();  }