@Test public void testEmptyConstruction() { final BasicEventList<String> source = new BasicEventList<>(); final List list = new List(getShell(), SWT.MULTI); final DefaultEventListViewer<String> viewer = new DefaultEventListViewer<>(source, list); assertSame(list, viewer.getList()); assertEquals(0, list.getItemCount()); assertTrue(Arrays.equals(new String[0], list.getItems())); }
public List getList() { return list; }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } DefaultEventListViewer(EventList<E> source, List list);  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat); protected  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat, boolean disposeSource); }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } DefaultEventListViewer(EventList<E> source, List list);  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat); protected  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat, boolean disposeSource); ItemFormat<? super E> getItemFormat(); List getList(); EventList<E> getDeselected(); EventList<E> getTogglingDeselected(); EventList<E> getSelected(); EventList<E> getTogglingSelected(); @Override void listChanged(ListEvent<E> listChanges); void invertSelection(); void dispose(); }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } DefaultEventListViewer(EventList<E> source, List list);  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat); protected  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat, boolean disposeSource); ItemFormat<? super E> getItemFormat(); List getList(); EventList<E> getDeselected(); EventList<E> getTogglingDeselected(); EventList<E> getSelected(); EventList<E> getTogglingSelected(); @Override void listChanged(ListEvent<E> listChanges); void invertSelection(); void dispose();  }