1 11 package org.eclipse.team.internal.ccvs.ui.actions; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.jface.wizard.WizardDialog; 15 import org.eclipse.swt.widgets.Shell; 16 import org.eclipse.team.internal.ccvs.core.CVSProviderPlugin; 17 import org.eclipse.team.internal.ccvs.ui.ICVSUIConstants; 18 import org.eclipse.team.internal.ccvs.ui.wizards.MergeWizard; 19 20 public class MergeAction extends WorkspaceTraversalAction { 21 22 25 public void execute(IAction action) { 26 final Shell shell = getShell(); 27 shell.getDisplay().syncExec(new Runnable () { 28 public void run() { 29 MergeWizard wizard = new MergeWizard(getTargetPart(), getSelectedResources(), getSelectedResourceMappings(CVSProviderPlugin.getTypeId())); 30 WizardDialog dialog = new WizardDialog(shell, wizard); 31 dialog.open(); 32 } 33 }); 34 } 35 36 39 public String getId() { 40 return ICVSUIConstants.CMD_MERGE; 41 } 42 } 43 | Popular Tags |