Bug 52275 Package Explorer error marker icon not updated
I have a custom builder which is invoked after a save (CTRL+S) that identifies problems with resources in my non-Java project and marks the resource with errors (or clears them as needed). This seems to work fine except that the problem marker icons in the Package Explorer are for some reason not automatically updated. Selecting the 'Go Into' context menu option and then navigating back again shows the correct problem marker icon state. Alternatively, closing and opening the project/eclipse displays the correct icon state. Is there something that needs to be called in order to 'refresh' the problem markers in the Package Explorer view? This is happening under Linux (RH9) using Eclipse 2.1.2 Comments from newsgroup: "The decorator handles this case the problem updater does not. "
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemMarkerManager.java
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.HashSet;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IMarkerDelta;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.widgets.Display;
import org.eclipse.jface.text.source.AnnotationModelEvent;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.jface.text.source.IAnnotationModelListener;