KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ui > actions > UpdateAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.actions;
12
13 import java.lang.reflect.InvocationTargetException JavaDoc;
14
15 import org.eclipse.jface.action.IAction;
16 import org.eclipse.team.internal.ccvs.ui.ICVSUIConstants;
17 import org.eclipse.team.internal.ccvs.ui.wizards.UpdateWizard;
18
19 /**
20  * UpdateAction performs a 'cvs update' command on the selected resources.
21  * If conflicts are present (file has been changed both remotely and locally),
22  * the changes will be merged into the local file such that the user must
23  * resolve the conflicts. This action is temporary code; it will be removed
24  * when a functional synchronize view has been implemented.
25  */

26 public class UpdateAction extends UpdateSilentAction {
27     /*
28      * @see IActionDelegate#run(IAction)
29      */

30     public void execute(IAction action) throws InterruptedException JavaDoc, InvocationTargetException JavaDoc {
31         UpdateWizard.run(getTargetPart(), getCVSResourceMappings());
32     }
33     
34     public String JavaDoc getId() {
35         return ICVSUIConstants.CMD_UPDATESWITCH;
36     }
37 }
38
Popular Tags