/** * {@inheritDoc} * * @see org.eclipse.jdt.launching.JavaLaunchDelegate#launch(org.eclipse.debug.core.ILaunchConfiguration, * java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor) */ @Override public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { super.launch(configuration, mode, launch, monitor); }
@Override public synchronized void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { try { fLaunch = launch; super.launch(configuration, mode, launch, monitor); } catch (CoreException e) { cleanup(launch); throw e; } fLaunch = null; }
@Override public synchronized void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { try { fLaunch = launch; super.launch(configuration, mode, launch, monitor); } catch (CoreException e) { cleanup(launch); throw e; } fLaunch = null; }
/** * Override super to ensure that the aspectpath is on the runtime classpath * * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate#launch(org.eclipse.debug.core.ILaunchConfiguration, * java.lang.String, org.eclipse.debug.core.ILaunch, * org.eclipse.core.runtime.IProgressMonitor) */ public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { LaunchConfigurationClasspathUtils.addAspectPathAndOutJarToClasspath(configuration); super.launch(configuration, mode, launch, monitor); }
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { IJavaProject javaProject = getJavaProject(configuration); Project project = Activator.getDefault().getCentral().getModel(javaProject); try { launcher = project.getProjectLauncher(); super.launch(configuration, mode, launch, monitor); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { IJavaProject javaProject = getJavaProject(configuration); Project model = Activator.getDefault().getCentral().getModel(javaProject); try { ProjectLauncher launcher = new ProjectLauncher(model); List<String> vmArguments = new ArrayList<String>(); List<String> programArguments = new ArrayList<String>(); launcher.getArguments(vmArguments, programArguments, false); this.classpath = launcher.getClasspath(); this.vmArguments = Processor.join(vmArguments, " "); this.programArguments = Processor.join(programArguments, " "); super.launch(configuration, mode, launch, monitor); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
super.launch(configuration, mode, launch, monitor);
@Override public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { // System.out.println("launching"); IDbgpService dbgpService = null; try { dbgpService = DLTKDebugPlugin.getDefault().getDbgpService(); IScriptDebugTarget target = new ScriptDebugTarget("org.apache.uima.ruta.ide.debug.rutaModel", dbgpService, "hello", launch, null); IOConsole cs = new IOConsole("aa", null); ScriptStreamProxy proxy = new ScriptStreamProxy(cs); target.setStreamProxy(proxy); launch.addDebugTarget(target); final ISourceLocator sourceLocator = launch.getSourceLocator(); final RutaSourceLookupDirector l = new RutaSourceLookupDirector(); launch.setSourceLocator(new ISourceLocator() { public Object getSourceElement(IStackFrame stackFrame) { Object sourceElement = sourceLocator.getSourceElement(stackFrame); if (sourceElement != null) return sourceElement; return l.getSourceElement(stackFrame); } }); } catch (Exception e) { } super.launch(configuration, mode, launch, monitor); }