mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
toString method.
This commit is contained in:
parent
deb50f5aa6
commit
1bbfd1fc71
1 changed files with 12 additions and 2 deletions
|
@ -642,9 +642,19 @@ public class PDOMFile implements IIndexFragmentFile {
|
|||
public ICPPUsingDirective[] getUsingDirectives() throws CoreException {
|
||||
return fLinkage.getUsingDirectives(this);
|
||||
}
|
||||
|
||||
// required because we cannot reference CCorePlugin in order for StandaloneIndexer to work
|
||||
|
||||
// Required because we cannot reference CCorePlugin in order for StandaloneIndexer to work
|
||||
private static IStatus createStatus(String msg) {
|
||||
return new Status(IStatus.ERROR, "org.eclipse.cdt.core", msg, null); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
IIndexFileLocation loc = null;
|
||||
try {
|
||||
loc = getLocation();
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
return loc != null ? loc.toString() : super.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue