1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-15 04:05:38 +02:00

Make isConsistent consistent with API

This commit is contained in:
Anton Leherbauer 2007-05-11 10:10:46 +00:00
parent 8fac735b74
commit ed17c0ef66

View file

@ -486,7 +486,7 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
}
public boolean isConsistent() throws CModelException {
return CModelManager.getDefault().getElementsOutOfSynchWithBuffers().get(this) == null;
return isOpen() && CModelManager.getDefault().getElementsOutOfSynchWithBuffers().get(this) == null;
}
public void makeConsistent(IProgressMonitor monitor, boolean forced) throws CModelException {