Bug 48355 [Tasks] exception while listing problems
9 december integration build 1. problems filtered to show problems 'on any resource in same project' 2! click on a closed project !SESSION Dec 09, 2003 13:42:37.966 --------------------------------------------- java.version=1.4.2_02 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86 -jre /usr/java/sdk/jre -install file:/opt/eclipse/ !ENTRY org.eclipse.core.runtime 4 2 Dec 09, 2003 13:42:37.967 !MESSAGE An internal error occurred during: "Searching for markers in Problems view". !STACK 0 java.lang.IllegalArgumentException at org.eclipse.ui.internal.ide.StatusUtil.newStatus(StatusUtil.java:80) at org.eclipse.ui.views.markers.internal.RestartableJob$2.run(RestartableJob.java:64) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.internal.WorkbenchPlugin;
public class MarkerFilter {
	
	private static final String TAG_DIALOG_SECTION = "filter"; 
	private static final String TAG_ENABLED = "enabled"; 
	private static final String TAG_FILTER_ON_MARKER_LIMIT = "filterOnMarkerLimit"; 
	private static final String TAG_MARKER_LIMIT = "markerLimit"; 
	private static final String TAG_ON_RESOURCE = "onResource"; 
	private static final String TAG_SELECTED_TYPES = "selectedType"; 
	private static final String TAG_WORKING_SET = "workingSet"; 
	private static final String TAG_TYPES_DELIMITER = ":"; 
	
	static final int ON_ANY_RESOURCE = 0;
	static final int ON_SELECTED_RESOURCE_ONLY = 1;
	static final int ON_SELECTED_RESOURCE_AND_CHILDREN = 2;
	static final int ON_ANY_RESOURCE_OF_SAME_PROJECT = 3;
	static final int ON_WORKING_SET = 4;
	static final int DEFAULT_MARKER_LIMIT = 300;
	static final boolean DEFAULT_FILTER_ON_MARKER_LIMIT = true;
	static final int DEFAULT_ON_RESOURCE = ON_ANY_RESOURCE;