@Test public void testBug413() { final BasicEventList<String> source = new BasicEventList<>(); for (int i = 0; i < 3; i++) { source.add("Str" + i); } final Table table = new Table(getShell(), SWT.VIRTUAL | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); final EventTableViewer<String> viewer = new EventTableViewer<>(source, table, new SimpleTableFormat()); table.getItem(2).getBounds(); assertEquals(3, table.getItemCount()); assertEquals("Str0", table.getItem(0).getText(0)); assertEquals("Str1", table.getItem(1).getText(0)); assertEquals("Str2", table.getItem(2).getText(0)); 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();  }