948ba8c796539a15cdd4a4ec7723ef4cb6e8eea4
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / viewsupport / IProblemChangedListener.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.viewsupport;
12
13 import org.eclipse.core.resources.IResource;
14
15 /**
16  * Can be added to a ProblemMarkerManager to get notified about problem marker
17  * changes. Used to update error ticks.
18  */
19 public interface IProblemChangedListener {
20
21         /**
22          * Called when problems changed. This call is posted in an aynch exec,
23          * therefore passed resources must not exist.
24          * 
25          * @param changedElements
26          *            A set with elements of type <code>IResource</code> that
27          *            describe the resources that had an problem change.
28          * @param isMarkerChange
29          *            If set to <code>true</code>, the change was a marker
30          *            change, if <code>false</code>, the change came from an
31          *            annotation model modification.
32          */
33         void problemsChanged(IResource[] changedResources, boolean isMarkerChange);
34
35 }