/*******************************************************************************
 * Copyright (c) 2006, 2008 Oracle. 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:
 *     Oracle - initial API and implementation
 ******************************************************************************/
package org.eclipse.jpt.db;

import java.util.EventListener;

/**
 * A ProfileListener is notified of any changes to the DTP connection profiles.
 * 
 * @see org.eclipse.datatools.connectivity.IProfileListener
 * 
 * Provisional API: This interface is part of an interim API that is still
 * under development and expected to change significantly before reaching
 * stability. It is available at this early stage to solicit feedback from
 * pioneering adopters on the understanding that any code that uses this API
 * will almost certainly be broken (repeatedly) as the API evolves.
 */
public interface ConnectionProfileListener
	extends EventListener
{

	/**
	 * The specified profile has been added.
	 */
	public void connectionProfileAdded(String name);

	/**
	 * The specified profile has been removed.
	 */
	public void connectionProfileRemoved(String name);

	/**
	 * The specified profile has been renamed.
	 */
	public void connectionProfileRenamed(String oldName, String newName);

}
