1 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 25 public boolean supportsCheckedInChangeSets() { 26 return true; 27 } 28 29 32 public boolean supportsActiveChangeSets() { 33 return getActiveChangeSetManager() != null; 34 } 35 36 39 public SyncInfoSetChangeSetCollector createSyncInfoSetChangeSetCollector(ISynchronizePageConfiguration configuration) { 40 return new CVSChangeSetCollector(configuration); 41 } 42 43 46 public SynchronizePageActionGroup getActionGroup() { 47 return new CVSChangeSetActionGroup(); 48 } 49 50 53 public boolean enableChangeSetsByDefault() { 54 return CVSUIPlugin.getPlugin().getPreferenceStore().getBoolean(ICVSUIConstants.PREF_COMMIT_SET_DEFAULT_ENABLEMENT); 55 } 56 } 57 | Popular Tags |