1 11 package org.eclipse.team.internal.ccvs.ui.subscriber; 12 13 import org.eclipse.compare.structuremergeviewer.IDiffElement; 14 import org.eclipse.team.core.synchronize.FastSyncInfoFilter; 15 import org.eclipse.team.core.synchronize.SyncInfo; 16 import org.eclipse.team.core.synchronize.FastSyncInfoFilter.SyncInfoDirectionFilter; 17 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration; 18 import org.eclipse.team.ui.synchronize.SynchronizeModelOperation; 19 20 public class OverrideAndCommitAction extends CVSParticipantAction { 21 22 public OverrideAndCommitAction(ISynchronizePageConfiguration configuration) { 23 super(configuration); 24 } 25 26 29 protected FastSyncInfoFilter getSyncInfoFilter() { 30 return new SyncInfoDirectionFilter(new int[] {SyncInfo.CONFLICTING, SyncInfo.INCOMING}); 31 } 32 33 36 protected SynchronizeModelOperation getSubscriberOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) { 37 return new WorkspaceCommitOperation(configuration, elements, true ); 38 } 39 40 } 41 | Popular Tags |