KickJava   Java API By Example, From Geeks To Geeks.

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


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.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 ConfirmMergedAction extends CVSParticipantAction {
21     
22     public ConfirmMergedAction(ISynchronizePageConfiguration configuration) {
23         super(configuration);
24     }
25
26     /* (non-Javadoc)
27      * @see org.eclipse.team.ui.sync.SubscriberAction#getSyncInfoFilter()
28      */

29     protected FastSyncInfoFilter getSyncInfoFilter() {
30         return new SyncInfoDirectionFilter(new int[] {SyncInfo.CONFLICTING});
31     }
32
33     /* (non-Javadoc)
34      * @see org.eclipse.team.internal.ui.actions.SubscriberAction#getSubscriberOperation(org.eclipse.compare.structuremergeviewer.IDiffElement[])
35      */

36     protected SynchronizeModelOperation getSubscriberOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
37         return new ConfirmMergedOperation(configuration, elements);
38     }
39 }
40
Popular Tags