1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

toString method.

This commit is contained in:
Sergey Prigogin 2010-01-04 04:31:37 +00:00
parent deb50f5aa6
commit 1bbfd1fc71

View file

@ -642,9 +642,19 @@ public class PDOMFile implements IIndexFragmentFile {
public ICPPUsingDirective[] getUsingDirectives() throws CoreException { public ICPPUsingDirective[] getUsingDirectives() throws CoreException {
return fLinkage.getUsingDirectives(this); 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) { private static IStatus createStatus(String msg) {
return new Status(IStatus.ERROR, "org.eclipse.cdt.core", msg, null); //$NON-NLS-1$ 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();
}
} }