1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-05 22:53:13 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-10-20 23:37:49 +00:00
parent 0672757bc6
commit 8a6ca5e261
3 changed files with 126 additions and 127 deletions

View file

@ -42,7 +42,6 @@ import org.eclipse.cdt.core.index.IIndex;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICProject; import org.eclipse.cdt.core.model.ICProject;
/** /**
* This is the processor used for the rename. It decides which of the delegates to * This is the processor used for the rename. It decides which of the delegates to
* use and forwards further calls to the delegate. * use and forwards further calls to the delegate.

View file

@ -548,18 +548,18 @@ public class EditorUtility {
} }
/** /**
* Gets the working copy of an compilation unit opened in an editor * Gets the working copy of an translation unit opened in an editor
* *
* @param cu the original compilation unit (or another working copy) * @param tu the original translation unit (or another working copy)
* @return the working copy of the compilation unit, or null if not found * @return the working copy of the translation unit, or null if not found
*/ */
public static ITranslationUnit getWorkingCopy(ITranslationUnit cu) { public static ITranslationUnit getWorkingCopy(ITranslationUnit tu) {
if (cu == null) if (tu == null)
return null; return null;
if (cu.isWorkingCopy()) if (tu.isWorkingCopy())
return cu; return tu;
return CDTUITools.getWorkingCopyManager().findSharedWorkingCopy(cu); return CDTUITools.getWorkingCopyManager().findSharedWorkingCopy(tu);
} }
/** /**