1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.team.internal.ccvs.ui.subscriber;
15 
16 import org.eclipse.compare.structuremergeviewer.IDiffElement;
17 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;
18 import org.eclipse.team.ui.synchronize.SynchronizeModelOperation;
19 
20 /**
21  * Action in compare editor that reverts the local contents to match the contents on the server.
22  */
23 public class CompareRevertAction extends CVSParticipantAction {
24 
CompareRevertAction(ISynchronizePageConfiguration configuration)25 	public CompareRevertAction(ISynchronizePageConfiguration configuration) {
26 		super(configuration);
27 	}
28 
29 	@Override
getSubscriberOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements)30 	protected SynchronizeModelOperation getSubscriberOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
31 		return new CompareRevertOperation(configuration, elements);
32 	}
33 
34 }
35