@Override
protected StructuredViewer doCreateViewer(Composite container) {
resources = new DiscoveryResources(getControl().getDisplay());
StructuredViewer viewer = new ControlListViewer(container, SWT.BORDER) {
@Override
protected ControlListItem<?> doCreateItem(Composite parent, Object element) {
return doCreateViewerItem(parent, element);
}
};
viewer.setContentProvider(contentProvider = new PackagistContentProvider());
searchResultCount = new Label(container, SWT.NONE);
searchResultCount.setText("asdfasdf");
GridDataFactory.fillDefaults().grab(true, false).span(3,1).align(SWT.BEGINNING, SWT.CENTER).hint(400, SWT.DEFAULT).applyTo(searchResultCount);