Bug 242208 [Markers] Filtering problems by working set doesn't take into account new files
Build ID: I20080617-2000 Steps To Reproduce: 1.Create a Java project 2.Create a working set that contains only a subset of source files 3.Create a filter in the problems view, whose scope is set to the working set 4.The filter works ok 5.Create a new source file that is included inside the working set 6.No errors are shown for this file 7.Deactivate the filter and activate it again 8.The errors are now shown. More information: I expect to get the step 8 result without doing the 7th step.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.internal.ide.Policy;
import org.eclipse.ui.views.markers.MarkerField;
import org.eclipse.ui.views.markers.internal.MarkerGroup;
import org.eclipse.ui.views.markers.internal.MarkerMessages;
import org.eclipse.ui.views.markers.internal.MarkerSupportRegistry;
import org.eclipse.ui.views.markers.internal.MarkerType;
import org.eclipse.ui.views.markers.internal.MarkerTypesModel;
/**
 * MarkerContentGenerator is the representation of the markerContentGenerator
 * extension point.
 * 
 * @since 3.4
 * 
 */
public class MarkerContentGenerator {
	private static final String ATTRIBUTE_DEFAULT_MARKER_GROUPING = "defaultMarkerGrouping"; 
	private static final String ATTRIBUTE_VISIBLE = "visible"; 
	/**
	 * The job family for content updates
	 */
	public static final Object CACHE_UPDATE_FAMILY = new Object();
	private static final String ELEMENT_MARKER_FIELD_CONFIGURATION = "markerFieldConfiguration"; 
	private static final IResource[] EMPTY_RESOURCE_ARRAY = new IResource[0];