Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9df1e17334b8cb7ebbaa3da361a94790a2e5c007 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2000, 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.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}.
 * 
 * @since 3.2
 * @noimplement This interface is not intended to be implemented by clients.
 */
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();
}

Back to the top