mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Move incompatible implementation of TranslationUnit.getPath to ExternalTranslationUnit
This commit is contained in:
parent
603cc6b75b
commit
a3716c7bc0
2 changed files with 5 additions and 4 deletions
|
@ -27,4 +27,9 @@ public class ExternalTranslationUnit extends TranslationUnit {
|
||||||
public ExternalTranslationUnit(ICElement parent, IPath path, String contentTypeID) {
|
public ExternalTranslationUnit(ICElement parent, IPath path, String contentTypeID) {
|
||||||
super(parent, path, contentTypeID);
|
super(parent, path, contentTypeID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IPath getPath() {
|
||||||
|
return getLocation();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -294,10 +294,6 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IPath getPath() {
|
|
||||||
return getLocation();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IFile getFile() {
|
public IFile getFile() {
|
||||||
IResource res = getResource();
|
IResource res = getResource();
|
||||||
if (res instanceof IFile) {
|
if (res instanceof IFile) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue