public ILaunch launch(String mode, IProgressMonitor monitor) throws CoreException { return delegate.launch(mode, monitor); }
public ILaunch launch(String mode, IProgressMonitor monitor, boolean build, boolean register) throws CoreException { return delegate.launch(mode, monitor, build, register); }
public ILaunch launch(String mode, IProgressMonitor monitor, boolean build) throws CoreException { return delegate.launch(mode, monitor, build); }
@Override public void launch(ILaunchConfiguration configuration, String mode) { try { // launch the run configuration in headless mode // if the UI plugin is activated, this implementation is replaced by the // DebugUITools.launch(ILaunchConfiguration,String) configuration.launch(mode, new NullProgressMonitor()); } catch (CoreException e) { throw new GradlePluginsRuntimeException(e); } }
@Override public void launch(IEditorPart editor, String mode) { try { getLaunchConfigurations(editor)[0].launch(mode, null); } catch (CoreException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public void launch(ISelection selection, String mode) { try { getLaunchConfigurations(selection)[0].launch(mode, null); } catch (CoreException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public void launch(IEditorPart editor, String mode) { IEditorInput input = editor.getEditorInput(); IFile file = input.getAdapter(IFile.class); try { ILaunchConfiguration launchConfig = getLaunchConfiguration(mode, file); launchConfig.launch(mode, new NullProgressMonitor()); } catch (CoreException e) { e.printStackTrace(); } }
@Override public void launch(IEditorPart editor, String mode) { IEditorInput input = editor.getEditorInput(); IFile file = input.getAdapter(IFile.class); try { ILaunchConfiguration launchConfig = getLaunchConfiguration(mode, file); launchConfig.launch(mode, new NullProgressMonitor()); } catch (CoreException e) { e.printStackTrace(); } }
try config.launch("debug", null, false);
private void launchBuild(int kind, ILaunchConfiguration config, Map args, IProgressMonitor monitor) throws CoreException { monitor.subTask(NLS.bind(ExternalToolsModelMessages.ExternalToolBuilder_Running__0_____1, new String[] { config.getName()})); buildStarted(kind, args); // The default value for "launch in background" is true in debug core. If // the user doesn't go through the UI, the new attribute won't be set. This means // that existing Ant builders will try to run in the background (and likely conflict with // each other) without migration. ILaunchConfiguration newconfig= ExternalToolMigration.migrateRunInBackground(config); newconfig.launch(ILaunchManager.RUN_MODE, monitor); buildEnded(); }
/** * Builds the workspace (according to preferences) and launches the given launch * configuration in the specified mode. May return null if auto build is in process and * user cancels the launch. * * @param configuration the configuration to launch * @param mode launch mode - run or debug * @param monitor progress monitor * @exception CoreException if an exception occurs while building or launching * @return resulting launch or <code>null</code> if user cancels */ public static ILaunch buildAndLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException { boolean buildBeforeLaunch = getDefault().getPreferenceStore().getBoolean(IDebugUIConstants.PREF_BUILD_BEFORE_LAUNCH); monitor.beginTask(IInternalDebugCoreConstants.EMPTY_STRING, 1); try { return configuration.launch( mode, new SubProgressMonitor(monitor, 1), buildBeforeLaunch); } finally { monitor.done(); } }
@Override public void launch(ISelection selection, String mode) { if (selection instanceof IStructuredSelection) { Iterator<Object> selectionIterator = ((IStructuredSelection) selection).iterator(); while (selectionIterator.hasNext()) { Object element = selectionIterator.next(); IResource resource = null; if (element instanceof IResource) { resource = (IResource) element; } else if (element instanceof IAdaptable) { resource = ((IAdaptable) element).getAdapter(IResource.class); } if (resource != null) { try { ILaunchConfiguration launchConfig = getLaunchConfiguration(mode, resource); launchConfig.launch(mode, new NullProgressMonitor()); } catch (CoreException e) { e.printStackTrace(); } return; } } } Display.getDefault().asyncExec(() -> { MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.DotnetTestDelegate_runTestError_title, Messages.DotnetTestDelegate_runTestError_message_badSelection); }); }
@Override public void launch(ISelection selection, String mode) { if (selection instanceof IStructuredSelection) { Iterator<Object> selectionIterator = ((IStructuredSelection) selection).iterator(); while (selectionIterator.hasNext()) { Object element = selectionIterator.next(); IResource resource = null; if (element instanceof IResource) { resource = (IResource) element; } else if (element instanceof IAdaptable) { resource = ((IAdaptable) element).getAdapter(IResource.class); } if (resource != null) { try { ILaunchConfiguration launchConfig = getLaunchConfiguration(mode, resource); launchConfig.launch(mode, new NullProgressMonitor()); } catch (CoreException e) { e.printStackTrace(); } return; } } } Display.getDefault().asyncExec(() -> { MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.DotnetRunDelegate_launchError_title, Messages.DotnetRunDelegate_launchError_message); }); }
if (delegate instanceof SerialVersionLaunchConfigurationDelegate) { final SerialVersionLaunchConfigurationDelegate extension= (SerialVersionLaunchConfigurationDelegate) delegate; configuration.launch(ILaunchManager.RUN_MODE, monitor, true, false); result= extension.getSerialVersionIDs(); final String message= extension.getErrorMessage();
ILaunchConfiguration cfg = programType.newInstance(null, "YourCommandName"); ILaunchConfigurationWorkingCopy wc = cfg.getWorkingCopy(); wc.setAttribute(IExternalToolConstants.ATTR_LOCATION, "${system_path:" + systemCommand+ "}"); wc.setAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, directoryToStartFrom); wc.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, parametersToPass); cfg = wc.doSave(); cfg.launch(ILaunchManager.RUN_MODE, null, false, true); cfg.delete();
ILaunch launch = config.launch(mode, new NullProgressMonitor());
ILaunch launch = config.launch(ILaunchManager.DEBUG_MODE, null); if (launch != null) { IDebugTarget dt = launch.getDebugTarget();
launchConfiguration.launch("run", progress.newChild(5), false, true);
IProgressMonitor monitor = new NullProgressMonitor(); ILaunchConfiguration config = getLaunchConfiguration(server, (ModuleArtifactDelegate) moduleArtifact, launchableAdapter, client, monitor); config.launch(launchMode, monitor); } catch (CoreException ce) { Trace.trace(Trace.SEVERE, "Could not launch Run on Server", ce);