mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 12:35:22 +02:00
Add support for finding external resources.
This commit is contained in:
parent
85d212d1c4
commit
6072b998aa
1 changed files with 11 additions and 2 deletions
|
@ -198,9 +198,18 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
||||||
}
|
}
|
||||||
if (res != null && !res.exists()) {
|
if (res != null && !res.exists()) {
|
||||||
res = null;
|
res = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// In case this is an external resource see if we can find
|
||||||
|
// a file for it.
|
||||||
|
if (res == null) {
|
||||||
|
IFile[] files = root.findFilesForLocation(path);
|
||||||
|
if (files.length > 0) {
|
||||||
|
res = files[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: for extenal resources ??
|
|
||||||
return create(res, null);
|
return create(res, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1129,4 +1138,4 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
||||||
removeBinaryRunner(project);
|
removeBinaryRunner(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue