blob: 67885349966ce8d733a63ff2e9a3b4931b17ef7b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 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.wst.validation.internal;
import org.eclipse.core.resources.IProject;
/**
* A call back for listeners that are interested when a project changes.
* @author karasiuk
*
*/
public interface IProjectChangeListener {
int ProjectOpened = 1;
int ProjectClosed = 2;
int ProjectDeleted = 4;
/** 8 - Something in the project description has changed. For example, a Nature was added. */
int ProjectChanged = 8;
/** 16 - The project has been added. */
int ProjectAdded = 16;
/**
* The project has changed in some way.
*
* @param project The project that has changed.
* @param type The type of change. This will be one of the Project constants;
*/
void projectChanged(IProject project, int type);
}