Bug 133059 [Markers] CCE when switching Problems view grouping
I20060322-1335 I switched Problems view grouping from Java Problem Type to Type while a background build was going on. !ENTRY org.eclipse.core.jobs 4 2 2006-03-23 20:36:24.465 !MESSAGE An internal error occurred during: "Process resource updates". !STACK 0 java.lang.ClassCastException: org.eclipse.ui.views.markers.internal.MarkerGroupingEntry at org.eclipse.ui.views.markers.internal.FieldCategory.getValue(FieldCategory.java:66) at org.eclipse.ui.views.markers.internal.FieldCategory.compare(FieldCategory.java:88) at org.eclipse.ui.views.markers.internal.CategorySorter.compare(CategorySorter.java:59) at org.eclipse.ui.views.markers.internal.CategorySorter.compare(CategorySorter.java:73) at org.eclipse.jface.viewers.ViewerComparator$1.compare(ViewerComparator.java:184) at java.util.Arrays.mergeSort(Arrays.java:1284) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1295) at java.util.Arrays.mergeSort(Arrays.java:1295) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.mergeSort(Arrays.java:1296) at java.util.Arrays.sort(Arrays.java:1223) at org.eclipse.jface.viewers.ViewerComparator.sort(ViewerComparator.java:182) at org.eclipse.ui.views.markers.internal.MarkerAdapter.buildAllMarkers(MarkerAdapter.java:240) at org.eclipse.ui.views.markers.internal.MarkerView.updateForContentsRefresh(MarkerView.java:412) at org.eclipse.ui.views.markers.internal.MarkerView$MarkerProcessJob.run(MarkerView.java:146) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
import org.eclipse.ui.actions.ContributionItemFactory;
import org.eclipse.ui.actions.SelectionProviderAction;
import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.ide.ResourceUtil;
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
import org.eclipse.ui.part.IShowInSource;
import org.eclipse.ui.part.MarkerTransfer;
import org.eclipse.ui.part.ShowInContext;
import org.eclipse.ui.preferences.ViewPreferencesAction;
import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
import org.eclipse.ui.progress.WorkbenchJob;
import org.eclipse.ui.views.markers.internal.MarkerAdapter.MarkerCategory;
import org.eclipse.ui.views.tasklist.ITaskListResourceAdapter;
/**
 * MarkerView is the abstract super class of the marker based views.
 * 
 */
public abstract class MarkerView extends TableView {
	private static final String TAG_SELECTION = "selection"; 
	private static final String TAG_MARKER = "marker"; 
	private static final String TAG_RESOURCE = "resource"; 
	private static final String TAG_ID = "id"; 
	private static final String TAG_FILTERS_SECTION = "filters"; 
	private static final String TAG_FILTER_ENTRY = "filter"; 
	private static final String MENU_FILTERS_GROUP = "group.filter";
	private static final String MENU_SHOW_IN_GROUP = "group.showIn";
	
	private static final String OLD_FILTER_SECTION = "filter"; 
	private class MarkerProcessJob extends Job {