KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > core > subscribers > IChangeSetChangeListener


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.internal.core.subscribers;
12
13 import org.eclipse.core.runtime.IPath;
14
15
16 /**
17  * Interface for registering change set change listeners with
18  * the change set manager.
19  */

20 public interface IChangeSetChangeListener {
21
22     /**
23      * The given set has been added to the set manager.
24      * @param set the added set
25      */

26     void setAdded(ChangeSet set);
27     
28     /**
29      * The default change set has change to be the given set.
30      * All new modifications will be placed in the default
31      * set.
32      * @param previousDefault
33      * @param set the default set
34      */

35     void defaultSetChanged(ChangeSet previousDefault, ChangeSet set);
36     
37     /**
38      * The given set has been removed from the set manager.
39      * @param set the removed set
40      */

41     void setRemoved(ChangeSet set);
42     
43     /**
44      * The title of the given set has changed.
45      * @param set the set whose title changed
46      */

47     void nameChanged(ChangeSet set);
48
49     /**
50      * The state of the given resources have change with respect to the
51      * given set. This means that the resource have either been added
52      * or removed from the set. Callers can use the resources contained
53      * in the set to determine if each resource is an addition or removal.
54      * @param set the set that has changed
55      * @param paths the paths of the resources whose containment state has changed w.r.t the set
56      */

57     void resourcesChanged(ChangeSet set, IPath[] paths);
58
59 }
60
Popular Tags