Bug 82743 [Markers] improved problem filter needed (OR clauses)
when working with large workspaces I find the current problems filter not powerful enough. If I were able to AND and OR the conditions available from the UI then I would solve all my use cases. my most needed one is : I would like to see ERRORS anywhere in the workspace OR WARNINGS in the current selected project
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
}
            } catch (CoreException e) {
            }
        }
        return new StructuredSelection(selectionList);
    }
    protected abstract String[] getRootTypes();
    /**
     * @param part
     * @param selection
     */
    protected void focusSelectionChanged(IWorkbenchPart part,
            ISelection selection) {
        List resources = new ArrayList();
        if (part instanceof IEditorPart) {
            IEditorPart editor = (IEditorPart) part;
            IFile file = ResourceUtil.getFile(editor.getEditorInput());
            if (file != null) {
                resources.add(file);
            }
        } else {
            if (selection instanceof IStructuredSelection) {
                for (Iterator iterator = ((IStructuredSelection) selection)
                        .iterator(); iterator.hasNext();) {
                    Object object = iterator.next();
                    if (object instanceof IAdaptable) {
                        ITaskListResourceAdapter taskListResourceAdapter;
                        Object adapter = ((IAdaptable) object)
                                .getAdapter(ITaskListResourceAdapter.class);
                        if (adapter != null