Bug 44443 [Tasks] Problems View should 'filter' more efficiently
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewUtil.java
* This must be called from the UI thread.
 * 
 * @param page the workbench page in which to show the marker
 * @param marker the marker to show
 * @param showView <code>true</code> if the view should be shown first
 *   <code>false</code> to only show the marker if the view is already showing 
 * @return <code>true</code> if the marker was successfully shown,
 *   <code>false</code> if not
 */
public static boolean showMarker(IWorkbenchPage page, IMarker marker, boolean showView) {
	try {
		String viewId = getViewId(marker);
		if (viewId != null) {
			IViewPart view = showView ? page.showView(viewId) : page.findView(viewId);
			if (view instanceof MarkerView) {
				StructuredSelection selection = new StructuredSelection(marker);
				MarkerView markerView = (MarkerView) view;
				markerView.setSelection(selection, true);
				return markerView.getSelection().equals(selection); 
			}
		}
	}
	catch (CoreException e) {
		
	}
	return false;
}
	
}