blob: ba49cf8538c3d63daeaedfe343bf8f58d3381d90 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2005 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.server.core.internal;
import org.eclipse.core.resources.IProject;
import org.eclipse.wst.server.core.IRuntime;
/**
* A project properties listener. Fires events when the runtime target changes.
* <p>
* This interface should be used for informational purposes only. If (e.g.)
* you have code that needs to respond to a specific runtime target, you should
* use the runtimeTargetHandler extension point. The extension point will allow
* your code to be automatically loaded when necessary (instead of having to
* preload and add a listener), will not cause unnecessary plugin loading, and
* will allow ordering of setting/unsetting the runtime target.
* </p>
*
* @see org.eclipse.wst.server.core.IProjectProperties
*/
public interface IProjectPropertiesListener {
/**
* Fired when the runtime target for the project changes.
*
* @param project the project that has changed
* @param runtime the new runtime target, or <code>null</code> if the runtime
* target has been removed
*/
public void runtimeTargetChanged(IProject project, IRuntime runtime);
}