KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ui > subscriber > CVSChangeSetCapability


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.internal.ccvs.ui.subscriber;
12
13 import org.eclipse.team.internal.ccvs.ui.CVSUIPlugin;
14 import org.eclipse.team.internal.ccvs.ui.ICVSUIConstants;
15 import org.eclipse.team.internal.ui.synchronize.ChangeSetCapability;
16 import org.eclipse.team.internal.ui.synchronize.SyncInfoSetChangeSetCollector;
17 import org.eclipse.team.ui.synchronize.*;
18
19
20 public class CVSChangeSetCapability extends ChangeSetCapability {
21
22     /* (non-Javadoc)
23      * @see org.eclipse.team.ui.synchronize.ChangeSetCapability#supportsCheckedInChangeSets()
24      */

25     public boolean supportsCheckedInChangeSets() {
26         return true;
27     }
28
29     /* (non-Javadoc)
30      * @see org.eclipse.team.ui.synchronize.ChangeSetCapability#supportsActiveChangeSets()
31      */

32     public boolean supportsActiveChangeSets() {
33         return getActiveChangeSetManager() != null;
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.team.ui.synchronize.ChangeSetCapability#createCheckedInChangeSetCollector(org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration)
38      */

39     public SyncInfoSetChangeSetCollector createSyncInfoSetChangeSetCollector(ISynchronizePageConfiguration configuration) {
40         return new CVSChangeSetCollector(configuration);
41     }
42     
43     /* (non-Javadoc)
44      * @see org.eclipse.team.ui.synchronize.ChangeSetCapability#getActionGroup()
45      */

46     public SynchronizePageActionGroup getActionGroup() {
47         return new CVSChangeSetActionGroup();
48     }
49     
50     /* (non-Javadoc)
51      * @see org.eclipse.team.ui.synchronize.ChangeSetCapability#enableChangeSetsByDefault()
52      */

53     public boolean enableChangeSetsByDefault() {
54         return CVSUIPlugin.getPlugin().getPreferenceStore().getBoolean(ICVSUIConstants.PREF_COMMIT_SET_DEFAULT_ENABLEMENT);
55     }
56 }
57
Popular Tags