1 11 package org.eclipse.team.internal.ui.synchronize; 12 13 import org.eclipse.team.core.diff.IDiff; 14 import org.eclipse.team.internal.core.subscribers.ActiveChangeSet; 15 import org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager; 16 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration; 17 import org.eclipse.team.ui.synchronize.SynchronizePageActionGroup; 18 19 25 public abstract class ChangeSetCapability { 26 27 37 public boolean supportsCheckedInChangeSets() { 38 return false; 39 } 40 41 51 public boolean supportsActiveChangeSets() { 52 return false; 53 } 54 55 65 public ActiveChangeSetManager getActiveChangeSetManager() { 66 return null; 67 } 68 69 79 public ActiveChangeSet createChangeSet(ISynchronizePageConfiguration configuration, IDiff[] diffs) { 80 return null; 81 } 82 83 90 public void editChangeSet(ISynchronizePageConfiguration configuration, ActiveChangeSet set) { 91 } 93 94 101 public SyncInfoSetChangeSetCollector createSyncInfoSetChangeSetCollector(ISynchronizePageConfiguration configuration) { 102 return null; 103 } 104 105 115 public SynchronizePageActionGroup getActionGroup() { 116 return null; 117 } 118 119 127 public boolean enableCheckedInChangeSetsFor(ISynchronizePageConfiguration configuration) { 128 return supportsCheckedInChangeSets() && 129 (configuration.getMode() == ISynchronizePageConfiguration.INCOMING_MODE || 130 configuration.getComparisonType() == ISynchronizePageConfiguration.TWO_WAY); 131 } 132 133 140 public boolean enableActiveChangeSetsFor(ISynchronizePageConfiguration configuration) { 141 return supportsActiveChangeSets() && 142 configuration.getMode() == ISynchronizePageConfiguration.OUTGOING_MODE; 143 } 144 145 151 public boolean enableChangeSetsByDefault() { 152 return false; 153 } 154 155 } 156 | Popular Tags |