1 11 package org.eclipse.pde.ui.launcher; 12 13 import org.eclipse.debug.core.ILaunchConfiguration; 14 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; 15 import org.eclipse.jface.viewers.ISelection; 16 import org.eclipse.pde.internal.ui.PDEPlugin; 17 import org.eclipse.pde.internal.ui.launcher.OSGiFrameworkManager; 18 import org.eclipse.ui.IEditorPart; 19 20 27 public class OSGiLaunchShortcut extends AbstractLaunchShortcut { 28 29 33 public void launch(ISelection selection, String mode) { 34 launch(mode); 35 } 36 37 41 public void launch(IEditorPart editor, String mode) { 42 launch(mode); 43 } 44 45 49 protected String getLaunchConfigurationTypeName() { 50 return "org.eclipse.pde.ui.EquinoxLauncher"; } 52 53 61 protected void initializeConfiguration(ILaunchConfigurationWorkingCopy configuration) { 62 OSGiFrameworkManager manager = PDEPlugin.getDefault().getOSGiFrameworkManager(); 63 manager.getDefaultInitializer().initialize(configuration); 64 } 65 66 70 protected boolean isGoodMatch(ILaunchConfiguration configuration) { 71 return true; 72 } 73 74 } 75 | Popular Tags |