org.eclipse.debug.core.model.RuntimeProcess Java Examples
The following examples show how to use
org.eclipse.debug.core.model.RuntimeProcess.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NodeJSDebugLauncher.java From codewind-eclipse with Eclipse Public License 2.0 | 6 votes |
private IStatus launchInternalDebugSession(CodewindEclipseApplication app, PortForwardInfo pfInfo, IProgressMonitor monitor) { try { ILaunchConfigurationWorkingCopy workingCopy = getLaunchConfigType().get().newInstance((IContainer) null, app.name); workingCopy.setAttribute(ADDRESS_ATTR, app.getDebugConnectHost()); workingCopy.setAttribute(PORT_ATTR, app.getDebugConnectPort()); workingCopy.setAttribute(LOCAL_ROOT_ATTR, app.fullLocalPath.toOSString()); workingCopy.setAttribute(REMOTE_ROOT_ATTR, app.getContainerAppRoot() == null ? "/app" : app.getContainerAppRoot()); CodewindLaunchConfigDelegate.setConfigAttributes(workingCopy, app); ILaunchConfiguration launchConfig = workingCopy.doSave(); ILaunch launch = launchConfig.launch(ILaunchManager.DEBUG_MODE, monitor); if (pfInfo != null && pfInfo.process != null) { Map<String, String> attributes = new HashMap<String, String>(); attributes.put(IProcess.ATTR_PROCESS_TYPE, "codewind.utility"); String title = NLS.bind(Messages.PortForwardTitle, pfInfo.localPort + ":" + app.getContainerDebugPort()); launch.addProcess(new RuntimeProcess(launch, pfInfo.process, title, attributes)); RemoteLaunchConfigDelegate.addDebugEventListener(launch); } app.setLaunch(launch); } catch (CoreException e) { return e.getStatus(); } return Status.OK_STATUS; }
Example #2
Source File: ProcessManager.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
public static IProcess newProcess(ILaunch launch, Process process, String label, Map<String, String> attributes) { return new RuntimeProcess(launch, process, label, attributes){ protected IStreamsProxy createStreamsProxy() { return null; } }; }
Example #3
Source File: PyProcessFactory.java From Pydev with Eclipse Public License 1.0 | 4 votes |
@Override public IProcess newProcess(ILaunch launch, Process process, String label, Map attributes) { return new RuntimeProcess(launch, new ProcessWrapper(process), label, attributes); }