1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Move incompatible implementation of TranslationUnit.getPath to ExternalTranslationUnit

This commit is contained in:
Anton Leherbauer 2007-02-12 16:02:45 +00:00
parent 603cc6b75b
commit a3716c7bc0
2 changed files with 5 additions and 4 deletions

View file

@ -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();
}
}

View file

@ -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) {