KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > core > diff > IDiffChangeEvent


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.core.diff;
12
13 import org.eclipse.core.runtime.IPath;
14 import org.eclipse.core.runtime.IStatus;
15
16 /**
17  * A change event that describes changes that have occurred
18  * in an {@link IDiffTree}.
19  * <p>
20  * This interface is not intended to be implemented by clients.
21  *
22  * @since 3.2
23  */

24 public interface IDiffChangeEvent {
25     
26     /**
27      * Returns the tree that has been changed.
28      * @return the tree that has been changed.
29      */

30     public IDiffTree getTree();
31     
32     /**
33      * Returns the delta nodes that have been added to the delta tree.
34      * @return the delta nodes that have been added to the delta tree
35      */

36     public IDiff[] getAdditions();
37     
38     /**
39      * Return the paths of the delta nodes that have been removed from the delta tree.
40      * @return the paths of the delta nodes that have been removed from the delta tree
41      */

42     public IPath[] getRemovals();
43     
44     /**
45      * Return the delta nodes contained in the delta tree that have changed in some way.
46      * @return the delta nodes contained in the delta tree that have changed
47      */

48     public IDiff[] getChanges();
49     
50     /**
51      * Return any errors that occurred while this change was taking place.
52      * @return any errors that occurred while this change was taking place
53      */

54     public IStatus[] getErrors();
55 }
56
Popular Tags