diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java index 0beff570d98..799b2787e20 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java @@ -27,4 +27,9 @@ public class ExternalTranslationUnit extends TranslationUnit { public ExternalTranslationUnit(ICElement parent, IPath path, String contentTypeID) { super(parent, path, contentTypeID); } + + public IPath getPath() { + return getLocation(); + } + } diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java index 1c3af7a605c..c76de054061 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java @@ -294,10 +294,6 @@ public class TranslationUnit extends Openable implements ITranslationUnit { return location; } - public IPath getPath() { - return getLocation(); - } - public IFile getFile() { IResource res = getResource(); if (res instanceof IFile) {