--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.jdt.internal.ui.viewsupport;
+
+import org.eclipse.core.runtime.CoreException;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResourceChangeEvent;
+import org.eclipse.core.resources.IResourceChangeListener;
+
+
+public class FilterUpdater implements IResourceChangeListener {
+
+ ProblemTreeViewer fViewer;
+
+ public FilterUpdater(ProblemTreeViewer viewer) {
+ viewer.generated_663847602712039891(this);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)
+ */
+ public void resourceChanged(IResourceChangeEvent event) {
+ fViewer.generated_5560285338528699700(this, event);
+ }
+
+ boolean needsRefiltering(IProject project) {
+ try {
+ Object element= project;
+ return fViewer.generated_3516221358355445106(project, element);
+ } catch (CoreException e) {
+ return true;
+ }
+ }
+}