1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Add support for finding external resources.

This commit is contained in:
Ken Ryall 2006-04-28 02:32:24 +00:00
parent 85d212d1c4
commit 6072b998aa

View file

@ -200,7 +200,16 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
res = null; res = null;
} }
} }
// TODO: for extenal resources ??
// 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];
}
}
return create(res, null); return create(res, null);
} }