Bug 65711 [Problems] Problems View takes too long to show
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (!isEnabled()) {
			unfiltered = findMarkers(new IResource[] {ResourcesPlugin.getWorkspace().getRoot()}, 
			IResource.DEPTH_INFINITE, -1, mon, ignoreExceptions);
		} else {
			
			int limit = -1;
			
			switch (getOnResource()) {
				case ON_ANY_RESOURCE: {
						unfiltered = findMarkers(new IResource[] {ResourcesPlugin.getWorkspace().getRoot()}, 
						IResource.DEPTH_INFINITE, limit, mon, ignoreExceptions);
						break;
					}
				case ON_SELECTED_RESOURCE_ONLY: {
						unfiltered = findMarkers(focusResource, IResource.DEPTH_ZERO, limit, mon, ignoreExceptions);					
						break;
					}
				case ON_SELECTED_RESOURCE_AND_CHILDREN: {
						unfiltered = findMarkers(focusResource, IResource.DEPTH_INFINITE, limit, mon, ignoreExceptions);
						break;					
					}
				case ON_ANY_RESOURCE_OF_SAME_PROJECT: {
						unfiltered = findMarkers(getProjects(focusResource), IResource.DEPTH_INFINITE, limit, mon, ignoreExceptions);					
						break;					
					}
				case ON_WORKING_SET: {
						unfiltered = findMarkers(getResourcesInWorkingSet(), IResource.DEPTH_INFINITE, limit, mon, ignoreExceptions);
					}
			}