blob: 7a16c07dbc616c18250f0fe7131e1701c450014e [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 v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* 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);
}