From: incastrix Date: Fri, 5 Feb 2010 20:35:28 +0000 (+0000) Subject: Enabled source lookup inside referred projects. fixes #792 X-Git-Url: http://git.phpeclipse.com Enabled source lookup inside referred projects. fixes #792 --- diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourcePathComputerDelegate.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourcePathComputerDelegate.java index 60f3455..a53e37e 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourcePathComputerDelegate.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourcePathComputerDelegate.java @@ -14,36 +14,17 @@ import org.eclipse.debug.core.sourcelookup.containers.WorkspaceSourceContainer; public class PHPSourcePathComputerDelegate implements ISourcePathComputerDelegate { public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException { -// String path = configuration.getAttribute(IXDebugConstants.ATTR_PHP_PROGRAM, (String)null); -// ISourceContainer sourceContainer = null; -// if (path != null) { -// IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(path)); -// if (resource != null) { -// IContainer container = resource.getParent(); -// if (container.getType() == IResource.PROJECT) { -// sourceContainer = new ProjectSourceContainer((IProject)container, false); -// } else if (container.getType() == IResource.FOLDER) { -// sourceContainer = new FolderSourceContainer(container, false); -// } -// } -// } -// if (sourceContainer == null) { -// sourceContainer = new WorkspaceSourceContainer(); -// } -// return new ISourceContainer[]{sourceContainer}; String project = configuration.getAttribute(IXDebugConstants.ATTR_PHP_PROJECT, (String)null); ISourceContainer sourceContainer = null; if (project != null) { IProject resource = ResourcesPlugin.getWorkspace().getRoot().getProject(project); if (resource != null) { - sourceContainer = new ProjectSourceContainer(resource, false); + sourceContainer = new ProjectSourceContainer(resource, true); } } if (sourceContainer == null) { sourceContainer = new WorkspaceSourceContainer(); } return new ISourceContainer[]{sourceContainer}; - } - }