Bug 123319 [Markers] ClassCastException during marker update
3.2 20050116 It is possible to get the following ClassCastException during marker updates. This is because the refreshes are not IMarkers and should not be processed. !ENTRY org.eclipse.core.jobs 4 2 2006-01-10 16:00:48.468 !MESSAGE An internal error occurred during: "Process resource updates". !STACK 0 java.lang.ClassCastException at org.eclipse.ui.views.markers.internal.MarkerView$MarkerProcessJob.getExistingMarkers(MarkerView.java:206) at org.eclipse.ui.views.markers.internal.MarkerView$MarkerProcessJob.run(MarkerView.java:169) 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
private UpdateJob updateJob = new UpdateJob();
	
	
	private int preBusyMarkers = 0;
	protected Object[] focusElements;
	private Clipboard clipboard;
	IResourceChangeListener markerUpdateListener = new IResourceChangeListener() {
		/*
		 * (non-Javadoc)
		 * 
		 * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)
		 */
		public void resourceChanged(IResourceChangeEvent event) {
			String[] markerTypes = getMarkerTypes();
			Collection changedMarkers = new ArrayList();
			Collection addedMarkers = new ArrayList();
			Collection removedMarkers = new ArrayList();
			if (event.getType() == IResourceChangeEvent.PRE_BUILD) {
				markerProcessJob.buildDone = false;
				return;
			}
			if (event.getType() == IResourceChangeEvent.POST_BUILD) {
				markerProcessJob.buildDone = true;
				scheduleMarkerUpdate();
				return;
			}
			for (int idx = 0; idx < markerTypes.length; idx++) {
				IMarkerDelta[] markerDeltas = event.findMarkerDeltas(
						markerTypes[idx], true);
				for (int i = 0; i < markerDeltas.length; i++) {