blob: ceef326b2c95bddecc712dd957ed734dd1a86fc3 (
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
|
/*******************************************************************************
* Copyright (c) 2000, 2004 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.ui.tags;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.ICVSFolder;
import org.eclipse.team.internal.ccvs.core.ICVSResource;
import org.eclipse.team.internal.ccvs.ui.CVSUIMessages;
/**
* A tag source for multiple folders.
*
* TODO: Temporarily a subclass of single folder until I
* can figure out how to handle the multi-folder case.
*/
public class MultiFolderTagSource extends SingleFolderTagSource {
private final ICVSFolder[] folders;
/* package */ MultiFolderTagSource(ICVSFolder[] folders) {
super(folders[0]);
this.folders = folders;
}
/* (non-Javadoc)
* @see org.eclipse.team.internal.ccvs.ui.merge.SingleFolderTagSource#getShortDescription()
*/
public String getShortDescription() {
return NLS.bind(CVSUIMessages.MultiFolderTagSource_0, new String[] { Integer.toString(folders.length) }); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.team.internal.ccvs.ui.tags.SingleFolderTagSource#getCVSResources()
*/
public ICVSResource[] getCVSResources() {
return folders;
}
}
|