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:
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) {
|
||||
super(parent, path, contentTypeID);
|
||||
}
|
||||
|
||||
public IPath getPath() {
|
||||
return getLocation();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue