@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); }