KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > IResourceStateChangeListener


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.ccvs.core;
12
13
14 import java.util.EventListener JavaDoc;
15
16 import org.eclipse.core.resources.IProject;
17 import org.eclipse.core.resources.IResource;
18
19 /**
20  * A resource state change listener is notified of changes to resources
21  * regarding their team state.
22  * <p>
23  * Clients may implement this interface.
24  * </p>
25  * @see ITeamManager#addResourceStateChangeListener(IResourceStateChangeListener)
26  */

27 public interface IResourceStateChangeListener extends EventListener JavaDoc{
28     
29     /**
30      * Notifies this listener that some resource sync info state changes have
31      * already happened. For example, a resource's base revision may have
32      * changed. The resource tree is open for modification when this method is
33      * invoked, so markers can be created, etc.
34      * <p>
35      * Note: This method is called by the CVS core; it is not intended to be
36      * called directly by clients.
37      * </p>
38      *
39      * @param changedResources that have sync info state changes
40      *
41      * [Note: The changed state event is purposely vague. For now it is only
42      * a hint to listeners that they should query the provider to determine the
43      * resources new sync info.]
44      */

45     public void resourceSyncInfoChanged(IResource[] changedResources);
46     
47     /**
48      * Notifies this listener that the resource sync info may have been changed
49      * by an external tool. It is not always easy to differentiate external
50      * changes from intenal ones. Therefore, the changed resources may include
51      * some whose sync info was changed internally. This method is called
52      * from a POST_CHANGE delta listener so the workspace cannot be modified.
53      *
54      * @param changeResources that have sync info state changes
55      */

56     public void externalSyncInfoChange(IResource[] changedResources);
57     
58     /**
59      * Notifies this listener that the resource's have been modified. This
60      * doesn't necessarily mean that the resource state isModified. The listener
61      * must check the state.
62      * <p>
63      * Note: This method is called by CVS team core; it is not intended to be
64      * called directly by clients.
65      * </p>
66      *
67      * @param changedResources that have changed state
68      * @param changeType the type of state change.
69      */

70     public void resourceModified(IResource[] changedResources);
71     
72     /**
73      * Notifies this listener that the project has just been configured
74      * to be a CVS project.
75      * <p>
76      * Note: This method is called by the CVS core; it is not intended to be
77      * called directly by clients.
78      * </p>
79      *
80      * @param project The project that has just been configured
81      */

82     public void projectConfigured(IProject project);
83     
84     /**
85      * Notifies this listener that the project has just been deconfigured
86      * and no longer has the CVS nature.
87      * <p>
88      * Note: This method is called by the CVS core; it is not intended to be
89      * called directly by clients.
90      * </p>
91      *
92      * @param project The project that has just been configured
93      */

94     public void projectDeconfigured(IProject project);
95     
96 }
97
98
Popular Tags