KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > ui > synchronize > WorkspaceScope


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.ui.synchronize;
12
13 import org.eclipse.core.resources.IResource;
14 import org.eclipse.team.internal.ui.TeamUIMessages;
15
16 /**
17  * A synchronize scope whose roots are the workspace.
18  * <p>
19  * Clients are not expected to subclass this class.
20  * </p>
21  * @since 3.0
22  */

23 public class WorkspaceScope extends AbstractSynchronizeScope {
24     
25     /**
26      * Create the resource scope that indicates that the subscriber roots should be used
27      */

28     public WorkspaceScope() {
29     }
30     
31     /* (non-Javadoc)
32      * @see org.eclipse.team.internal.ui.synchronize.ScopableSubscriberParticipant.ISynchronizeScope#getName()
33      */

34     public String JavaDoc getName() {
35         return TeamUIMessages.WorkspaceScope_0;
36     }
37     
38     /* (non-Javadoc)
39      * @see org.eclipse.team.internal.ui.synchronize.ScopableSubscriberParticipant.ISynchronizeScope#getRoots()
40      */

41     public IResource[] getRoots() {
42         // Return null which indicates to use the subscriber roots
43
return null;
44     }
45 }
46
Popular Tags