2
* org.vcs.bazaar.eclipse (c) Vectrace Jan 31, 2006
5
package org.vcs.bazaar.eclipse.ui.team;
7
import org.eclipse.core.resources.IProject;
8
import org.eclipse.jface.action.IAction;
9
import org.eclipse.ui.IWorkbenchWindow;
10
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
15
* TODO: no existe este comando en hg (ni en bzr)
18
public class ActionView extends BzrAction {
20
// private IWorkbenchPart targetPart;
27
* We will cache window object in order to
28
* be able to provide parent shell for the message dialog.
29
* @see IWorkbenchWindowActionDelegate#init
31
public void init(IWorkbenchWindow window) {
32
// System.out.println("ActionView:init(window)");
33
// this.window = window;
37
* The action has been activated. The argument of the
38
* method represents the 'real' action sitting
39
* in the workbench UI.
40
* @see IWorkbenchWindowActionDelegate#run
44
public void run(IAction action) {
47
proj=BazaarUtilities.getProject(selection);
48
Repository=BazaarUtilities.getRepositoryPath(proj);
51
Repository="."; //never leave this empty add a . to point to current path
53
//Setup and run command
54
// System.out.println("hg --cwd " + Repository + " status");
55
String launchCmd[] = { BazaarUtilities.getBzrExecutable(),"--cwd", Repository ,"view" };
56
BazaarUtilities.ExecuteCommand(launchCmd,true);