1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[scalability] TU check for existance should just be resource test instead of parsing the file.

This commit is contained in:
David Inglis 2004-06-01 18:32:12 +00:00
parent 2beb6089ea
commit 424cfd2211

View file

@ -575,4 +575,15 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
public boolean exists() {
IResource res = getResource();
if (res != null)
return res.exists();
return super.exists();
}
} }