mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Make CompilationDirectorySourceContainer little smarter.
This commit is contained in:
parent
b81cf7e199
commit
3e78c7b962
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ public class CompilationDirectorySourceContainer extends CompositeSourceContaine
|
|||
* @see org.eclipse.debug.core.sourcelookup.ISourceContainer#findSourceElements(String)
|
||||
*/
|
||||
public Object[] findSourceElements(String name) throws CoreException {
|
||||
File file = new File(fDirectory, name);
|
||||
File file = new File(name);
|
||||
if (!file.isAbsolute()) {
|
||||
file = new File(fDirectory, name);
|
||||
}
|
||||
List<Object> sources;
|
||||
if (file.exists() && file.isFile()) {
|
||||
sources = Arrays.asList(SourceUtils.findSourceElements(file, getDirector()));
|
||||
|
|
Loading…
Add table
Reference in a new issue