1 11 package org.eclipse.team.internal.ccvs.ui.actions; 12 13 import java.lang.reflect.InvocationTargetException ; 14 15 import org.eclipse.jface.action.IAction; 16 import org.eclipse.jface.viewers.ISelection; 17 import org.eclipse.jface.wizard.WizardDialog; 18 import org.eclipse.swt.widgets.Shell; 19 import org.eclipse.team.internal.ccvs.ui.wizards.CheckoutWizard; 20 import org.eclipse.ui.IWorkbenchWindow; 21 import org.eclipse.ui.IWorkbenchWindowActionDelegate; 22 23 26 public class CheckoutWizardAction extends CVSAction implements IWorkbenchWindowActionDelegate { 27 28 Shell shell; 29 30 33 public void dispose() { 34 } 35 36 39 public void init(IWorkbenchWindow window) { 40 this.shell = window.getShell(); 41 } 42 43 46 protected void execute(IAction action) throws InvocationTargetException , InterruptedException { 47 CheckoutWizard wizard = new CheckoutWizard(); 48 WizardDialog dialog = new WizardDialog(shell, wizard); 49 dialog.open(); 50 } 51 52 55 public void selectionChanged(IAction action, ISelection selection) { 56 } 57 58 61 public boolean isEnabled() { 62 return true; 63 } 64 } 65 | Popular Tags |