Bug 157174 [Viewers] Refactor new Viewer API
We are yet not completely happy with the API and refactor it.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java
*/
	
	
	
	
	
	
	
	
	
	abstract protected void viewerSelectionChanged(
			IStructuredSelection selection);
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
	public void createPartControl(Composite parent) {
		parent.setLayout(new FillLayout());
		viewer = new TreeViewer(createTree(parent));
		createColumns(viewer.getTree());
		contentProvider = new MarkerTreeContentProvider();
		viewer.setContentProvider(contentProvider);
		viewer.setLabelProvider(new TableViewLabelProvider(getAllFields()));
		viewer.addSelectionChangedListener(new ISelectionChangedListener() {
			public void selectionChanged(SelectionChangedEvent event) {
				IStructuredSelection selection = (IStructuredSelection) event
						.getSelection();
				viewerSelectionChanged(selection);
			}