1 11 package org.eclipse.pde.internal.ui.launcher; 12 13 import org.eclipse.debug.core.ILaunchManager; 14 import org.eclipse.jface.action.Action; 15 import org.eclipse.jface.viewers.StructuredSelection; 16 import org.eclipse.pde.ui.launcher.EclipseLaunchShortcut; 17 import org.eclipse.swt.custom.BusyIndicator; 18 import org.eclipse.ui.PlatformUI; 19 24 public class RunWorkbenchAction extends Action { 25 public void run() { 26 final EclipseLaunchShortcut shortcut = new EclipseLaunchShortcut(); 27 BusyIndicator.showWhile(PlatformUI.getWorkbench() 28 .getActiveWorkbenchWindow().getShell().getDisplay(), 29 new Runnable () { 30 public void run() { 31 shortcut.launch(new StructuredSelection(), 32 ILaunchManager.RUN_MODE); 33 notifyResult(true); 34 } 35 }); 36 } 37 } 38 | Popular Tags |