From a3716c7bc049bd51786f6587da89cc84a98cd540 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Mon, 12 Feb 2007 16:02:45 +0000 Subject: [PATCH] Move incompatible implementation of TranslationUnit.getPath to ExternalTranslationUnit --- .../cdt/internal/core/model/ExternalTranslationUnit.java | 5 +++++ .../org/eclipse/cdt/internal/core/model/TranslationUnit.java | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) 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) {