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

Fixed a typo.

This commit is contained in:
Sergey Prigogin 2011-05-17 22:31:15 +00:00
parent 5dfe553d80
commit 73def3b95b

View file

@ -132,7 +132,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy {
*/ */
@Override @Override
public boolean exists() { public boolean exists() {
// working copy always exists in the model until it is detroyed // working copy always exists in the model until it is destroyed
return this.useCount != 0; return this.useCount != 0;
} }
@ -141,7 +141,6 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy {
*/ */
@Override @Override
public IBufferFactory getBufferFactory(){ public IBufferFactory getBufferFactory(){
return this.bufferFactory; return this.bufferFactory;
} }
@ -255,8 +254,8 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy {
return false; return false;
} }
try { try {
// if resource got deleted, then #getModificationStamp() will answer IResource.NULL_STAMP, which is always different from the cached // If resource got deleted, then #getModificationStamp() will answer
// timestamp // IResource.NULL_STAMP, which is always different from the cached timestamp.
return ((TranslationUnitInfo) getElementInfo()).fTimestamp == ((IFile) resource).getModificationStamp(); return ((TranslationUnitInfo) getElementInfo()).fTimestamp == ((IFile) resource).getModificationStamp();
} catch (CModelException e) { } catch (CModelException e) {
return false; return false;
@ -374,7 +373,8 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy {
if (isReadOnly()) { if (isReadOnly()) {
throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this)); throw new CModelException(new CModelStatus(ICModelStatusConstants.READ_ONLY, this));
} }
// computes fine-grain deltas in case the working copy is being reconciled already (if not it would miss one iteration of deltas). // computes fine-grain deltas in case the working copy is being reconciled already
// (if not it would miss one iteration of deltas).
this.reconcile(); this.reconcile();
} }