KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > client > listeners > IUpdateMessageListener


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.client.listeners;
12  
13 import org.eclipse.team.internal.ccvs.core.ICVSFolder;
14
15 /**
16  * This listener is used by RemoteFolder to listener for E and M messages
17  * from the CVS server in order to determine the files and folders contained in a parent folder.
18  */

19 public interface IUpdateMessageListener {
20     /**
21      * Notification that a directory (which may or may not have been reported by
22      * directoryInformation()) does not exist.
23      *
24      * @param commandRoot the root directory of the command
25      * @param path the path of the directory relative to the commandRoot
26      */

27     public void directoryDoesNotExist(ICVSFolder commandRoot, String JavaDoc path);
28     /**
29      * Notification of information about a directory.
30      *
31      * @param commandRoot the root directory of the command
32      * @param path the path of the directory relative to the commandRoot
33      * @param newDirectory true if the directory does not exist locally (i.e. in the commandRoot hierarchy)
34      */

35     public void directoryInformation(ICVSFolder commandRoot, String JavaDoc path, boolean newDirectory);
36     /**
37      * Notification of information about a file
38      *
39      * @param type the type of update for the file (see Update for type constants)
40      * @param commandRoot the root directory of the command
41      * @param filename the path of the file relative to the commandRoot
42      */

43     public void fileInformation(int type, ICVSFolder parent, String JavaDoc filename);
44     /**
45      * Notification that a file does not exists remotely
46      *
47      * @param commandRoot the root directory of the command
48      * @param filename the path of the file relative to the commandRoot
49      */

50     public void fileDoesNotExist(ICVSFolder parent, String JavaDoc filename);
51 }
52
Popular Tags