KickJava   Java API By Example, From Geeks To Geeks.

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


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.ui.synchronize.ISynchronizePageConfiguration;
15 import org.eclipse.team.ui.synchronize.SynchronizeModelOperation;
16
17 /**
18  * Action in compare editor that reverts the local contents to match the contents on the server.
19  */

20 public class CompareRevertAction extends CVSParticipantAction {
21
22     public CompareRevertAction(ISynchronizePageConfiguration configuration) {
23         super(configuration);
24     }
25
26     /* (non-Javadoc)
27      * @see org.eclipse.team.internal.ui.actions.SubscriberAction#getSubscriberOperation(org.eclipse.compare.structuremergeviewer.IDiffElement[])
28      */

29     protected SynchronizeModelOperation getSubscriberOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
30         return new CompareRevertOperation(configuration, elements);
31     }
32
33 }
34
Popular Tags