/** * Re-launches the given configuration in the specified mode after * terminating the previous if Preferred. * * @param isShift is Shift pressed (use <code>false</code> if no support for * Shift) */ public static void relaunch(ILaunchConfiguration config, String mode, boolean isShift) { DebugUITools.launch(config, mode, isShift); }
/** * Re-launches the given configuration in the specified mode. * */ public static void relaunch(ILaunchConfiguration config, String mode) { DebugUITools.launch(config, mode); }
/** * @param configuration */ private void relaunchInDebugMode(ILaunchConfiguration configuration) { DebugUITools.launch(configuration, ILaunchManager.DEBUG_MODE); } }
private void runInternal(boolean isShift) { DebugUITools.launch(fConfig, fMode, isShift); } }
private void runInternal(boolean isShift) { DebugUITools.launch(fConfiguration, fMode, isShift); }
@Override public void run() { try { ILaunchConfiguration config = findLaunchConfiguration(); if (config != null) DebugUITools.launch(config, fMode); } catch (CoreException e) { } }
private static void runConfig(ILaunchConfigurationWorkingCopy launchConfiguration, String runMode) { ILaunchConfiguration conf= save(launchConfiguration); if(null != conf) { // try { // Map attrs= conf.getAttributes(); // System.out.println("Launch attrs:" + attrs); // } // catch(CoreException cex) { ; } DebugUITools.launch(conf, runMode); } }
/** * Validates the given launch mode and launches. * * @param configuration configuration to launch * @param mode launch mode identifier * @param isShift is Shift pressed */ private void launch(ILaunchConfiguration configuration, String mode, boolean isShift) { if (validateMode(configuration, mode)) { DebugUITools.launch(configuration, mode, isShift); } }
public void launch(IBinary bin, String mode) { ILaunchConfiguration config = findLaunchConfiguration(bin, mode); if (config != null) { DebugUITools.launch(config, mode); } }
/** * Launches the application in the specified mode, or does nothing if the user canceled * the launch when offered to select one of several available launch configurations. * * @param mode * mode of launch (run, debug or profile) * * @see org.eclipse.debug.core.ILaunchManager */ protected void launch(String mode) { ILaunchConfiguration configuration = findLaunchConfiguration(mode); if (configuration != null) DebugUITools.launch(configuration, mode); }
/** * Saves and builds the workspace according to current preference settings, * and launches the given launch configuration in the specified mode. It * terminates the current launch for the same configuration if it was * specified via Preferences or toggled by Shift. * <p> * This method must be called in the UI thread. * </p> * * @param configuration the configuration to launch * @param mode launch mode - run or debug * @since 2.1 */ public static void launch(final ILaunchConfiguration configuration, final String mode) { launch(configuration, mode, DebugUITools.findToggleLaunchForConfig(configuration, mode)); }
void launch(IJavaProject project, String mode) { try { ILaunchConfiguration config = find(project); if (config == null) config = createConfiguration(project); DebugUITools.launch(config, mode); } catch (Exception e) { e.printStackTrace(); } }
void launch(IJavaProject project, String mode) { try { ILaunchConfiguration config = find(project); if (config == null) config = createConfiguration(project); DebugUITools.launch(config, mode); } catch (Exception e) { e.printStackTrace(); } }
public void launch(IResource ir,String mode){ ILaunchConfiguration config = findLaunchConfiguration(ir); if (config == null) { config = createConfiguration(ir); } if (config != null) { DebugUITools.launch(config,mode); } }
/** * Launches a configuration for the given type */ protected void launch(IType type, String mode) { ILaunchConfiguration config = findLaunchConfiguration(type, getConfigurationType()); if (config != null) { DebugUITools.launch(config, mode); } }
@Override public void run() { ILaunch launch = getLastLaunch(); if(null != launch) { DebugUITools.launch(launch.getLaunchConfiguration(), launch.getLaunchMode()); } } }
boolean launch(ILaunchConfiguration configuration, ILaunchRequest request, boolean preview) { if (preview && !previewConfiguration(configuration, request)) { return false; } if (Debug.DEBUG) { Debug.debug("Launching: " + configuration.getName()); } DebugUITools.launch(configuration, request.getLaunchMode()); return true; }
/** * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction) */ @Override public void run(IAction action) { ILaunchConfiguration configuration = getLaunchConfigurationManager().getLastLaunch(fLaunchGroupIdentifier); if (configuration == null) { openLaunchConfigurationDialog(); } else { DebugUITools.launch(configuration, getMode()); } }
/** * Notification the 'launch' button has been pressed. Save and launch. * */ protected void handleLaunchPressed() { ILaunchConfiguration config = fTabViewer.getOriginal(); if (fTabViewer.isDirty() && fTabViewer.canSave()) { config = fTabViewer.handleApplyPressed(); } if(config != null) { close(); DebugUITools.launch(config, getMode(), fIsShift); } setShift(false); }
public void run() { DebugPlugin.getDefault().getLaunchManager().addLaunchListener(new SPLaunchListener(config)); if (identifier.getType() == ProcIdentifier.TYPE_TRIGGER) { ILaunchGroup group = DebugUITools.getLaunchGroup(config, spmode); String groupId = group == null ? "" : group.getIdentifier(); //$NON-NLS-1$ DebugUITools.openLaunchConfigurationDialog(getShell(), config, groupId, null); return; } DebugUITools.launch(config, spmode); } });