Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7f945ab33e3590918afe0efa04e326fdcc30de5d (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
/*******************************************************************************
 * Copyright (c) 2000, 2003 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.internal.ccvs.core.client.listeners;
 
import org.eclipse.team.internal.ccvs.core.ICVSFolder;

/**
 * This listener is used by RemoteFolder to listener for E and M messages
 * from the CVS server in order to determine the files and folders contained in a parent folder.
 */
public interface IUpdateMessageListener {
	/**
	 * Notification that a directory (which may or may not have been reported by 
	 * directoryInformation()) does not exist.
	 * 
	 * @param commandRoot the root directory of the command
	 * @param path the path of the directory relative to the commandRoot
	 */
	public void directoryDoesNotExist(ICVSFolder commandRoot, String path);
	/**
	 * Notification of information about a directory.
	 * 
	 * @param commandRoot the root directory of the command
	 * @param path the path of the directory relative to the commandRoot
	 * @param newDirectory true if the directory does not exist locally (i.e. in the commandRoot hierarchy)
	 */
	public void directoryInformation(ICVSFolder commandRoot, String path, boolean newDirectory);
	/**
	 * Notification of information about a file
	 * 
	 * @param type the type of update for the file (see Update for type constants)
	 * @param commandRoot the root directory of the command
	 * @param filename the path of the file relative to the commandRoot
	 */
	public void fileInformation(int type, ICVSFolder parent, String filename);
	/**
	 * Notification that a file does not exists remotely
	 * 
	 * @param commandRoot the root directory of the command
	 * @param filename the path of the file relative to the commandRoot
	 */
	public void fileDoesNotExist(ICVSFolder parent, String filename);
}

Back to the top