From 1bbfd1fc71c89d2a7cfea26006e18e55030e965e Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 4 Jan 2010 04:31:37 +0000 Subject: [PATCH] toString method. --- .../cdt/internal/core/pdom/dom/PDOMFile.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java index b883124ba06..108f5cf048e 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java @@ -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(); + } }