1 11 package org.eclipse.team.internal.ccvs.ui.mappings; 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.ui.synchronize.ISynchronizePageConfiguration; 17 18 public abstract class ModelParticipantChangeSetCapability extends ChangeSetCapability { 19 20 23 public boolean enableChangeSetsByDefault() { 24 return CVSUIPlugin.getPlugin().getPreferenceStore().getBoolean(ICVSUIConstants.PREF_COMMIT_SET_DEFAULT_ENABLEMENT); 25 } 26 27 30 public boolean supportsCheckedInChangeSets() { 31 return true; 32 } 33 34 37 public boolean enableCheckedInChangeSetsFor(ISynchronizePageConfiguration configuration) { 38 return supportsCheckedInChangeSets() && 39 configuration.getMode() != ISynchronizePageConfiguration.OUTGOING_MODE; 40 } 41 42 public abstract CheckedInChangeSetCollector createCheckedInChangeSetCollector(ISynchronizePageConfiguration configuration); 43 44 } 45 | Popular Tags |