blob: b62ed6946c5d5a6401ef91a13a2c1dc2b9542d09 (
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
|
/*******************************************************************************
* 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.ui.synchronize;
import org.eclipse.core.resources.IResource;
import org.eclipse.team.internal.ui.Policy;
/**
* A synchronize scope whose roots are the workspace.
* <p>
* Clients are not expected to subclass this class.
* </p>
* @since 3.0
*/
public class WorkspaceScope extends AbstractSynchronizeScope {
/**
* Create the resource scope that indicates that the subscriber roots should be used
*/
public WorkspaceScope() {
}
/* (non-Javadoc)
* @see org.eclipse.team.internal.ui.synchronize.ScopableSubscriberParticipant.ISynchronizeScope#getName()
*/
public String getName() {
return Policy.bind("WorkspaceScope.0"); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.team.internal.ui.synchronize.ScopableSubscriberParticipant.ISynchronizeScope#getRoots()
*/
public IResource[] getRoots() {
// Return null which indicates to use the subscriber roots
return null;
}
}
|