From 73def3b95b03b3251de32d6de1bb63145dbf5533 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Tue, 17 May 2011 22:31:15 +0000 Subject: [PATCH] Fixed a typo. --- .../eclipse/cdt/internal/core/model/WorkingCopy.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java index da8bf21e17b..ff68ab605b7 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/WorkingCopy.java @@ -132,7 +132,7 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { */ @Override 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; } @@ -141,7 +141,6 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { */ @Override public IBufferFactory getBufferFactory(){ - return this.bufferFactory; } @@ -255,8 +254,8 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { return false; } try { - // if resource got deleted, then #getModificationStamp() will answer IResource.NULL_STAMP, which is always different from the cached - // timestamp + // If resource got deleted, then #getModificationStamp() will answer + // IResource.NULL_STAMP, which is always different from the cached timestamp. return ((TranslationUnitInfo) getElementInfo()).fTimestamp == ((IFile) resource).getModificationStamp(); } catch (CModelException e) { return false; @@ -374,7 +373,8 @@ public class WorkingCopy extends TranslationUnit implements IWorkingCopy { if (isReadOnly()) { 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(); }