Skip to main content
summaryrefslogtreecommitdiffstats
blob: 9eadb57b7c78a70c3206bf1b8c6acdac5b4f6873 (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
52
53
54
55
56
57
58
59
60
61
62
63
/*******************************************************************************
 * 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 Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.team.internal.ccvs.core.syncinfo;

import org.eclipse.team.internal.ccvs.core.CVSTag;

/**
 * Mutable version of FolderSyncInfo. Can be used when either creating a
 * folder sync object from scratch or when modifying an existing
 * <code>FolderSyncInfo</code> instance. Example usage:
 * <pre>
 * FolderSyncInfo info = folder.getFolderSyncInfo(); 
 * if(info!=null) {
 *    MutableFolderSyncInfo newInfo = info.cloneMutable(); 
 *    newInfo.setTag(CVSTag.DEFAULT);
 *    folder.setFolderSyncInfo(newInfo);
 * }
 * </pre>
 * @see FolderSyncInfo
 */
public class MutableFolderSyncInfo extends FolderSyncInfo {
	
	/**
	 * Constructor MutableFolderSyncInfo.
	 * @param folderSyncInfo
	 */
	public MutableFolderSyncInfo(FolderSyncInfo info) {
		this(info.getRepository(), info.getRoot(), info.getTag(), info.getIsStatic());
	}

	/**
	 * Constructor for MutableFolderSyncInfo.
	 * @param repo
	 * @param root
	 * @param tag
	 * @param isStatic
	 */
	public MutableFolderSyncInfo(String repo, String root, CVSTag tag, boolean isStatic) {
		super(repo, root, tag, isStatic);
	}

	/**
	 * @see org.eclipse.team.internal.ccvs.core.syncinfo.FolderSyncInfo#setTag(org.eclipse.team.internal.ccvs.core.CVSTag)
	 */
	public void setTag(CVSTag tag) {
		super.setTag(tag);
	}
	/**
	 * Method setRepository.
	 * @param string
	 */
	public void setRepository(String repository) {
		this.repository = repository;
	}
}

Back to the top