blob: 082711e19613ec56351a7394b142e15792a4aec4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2006 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.team.core.diff;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
/**
* A change event that describes changes that have occurred
* in an {@link IDiffTree}.
* <p>
* This interface is not intended to be implemented by clients.
*
* @since 3.2
*/
public interface IDiffChangeEvent {
/**
* Returns the tree that has been changed.
* @return the tree that has been changed.
*/
public IDiffTree getTree();
/**
* Returns the delta nodes that have been added to the delta tree.
* @return the delta nodes that have been added to the delta tree
*/
public IDiff[] getAdditions();
/**
* Return the paths of the delta nodes that have been removed from the delta tree.
* @return the paths of the delta nodes that have been removed from the delta tree
*/
public IPath[] getRemovals();
/**
* Return the delta nodes contained in the delta tree that have changed in some way.
* @return the delta nodes contained in the delta tree that have changed
*/
public IDiff[] getChanges();
/**
* Return any errors that occurred while this change was taking place.
* @return any errors that occurred while this change was taking place
*/
public IStatus[] getErrors();
}