~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMBinding.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 *******************************************************************************/
13
13
package org.eclipse.cdt.internal.core.pdom.dom;
14
14
 
 
15
import java.lang.reflect.Field;
 
16
import java.lang.reflect.Modifier;
 
17
 
15
18
import org.eclipse.cdt.core.CCorePlugin;
16
19
import org.eclipse.cdt.core.dom.ast.ASTTypeUtil;
17
20
import org.eclipse.cdt.core.dom.ast.DOMException;
37
40
import org.eclipse.cdt.internal.core.pdom.tag.PDOMTaggable;
38
41
import org.eclipse.core.runtime.CoreException;
39
42
 
40
 
import java.lang.reflect.Field;
41
 
import java.lang.reflect.Modifier;
42
 
 
43
43
/**
44
44
 * Base class for bindings in the PDOM.
45
45
 */
261
261
        @Override
262
262
        public final String toString() {
263
263
                String name = toStringBase();
264
 
                return name + " " + getConstantNameForValue(getLinkage(), getNodeType());  //$NON-NLS-1$
 
264
                try {
 
265
                        PDOMFile localToFile = getLocalToFile();
 
266
                        if (localToFile != null)
 
267
                                return name + " (local to " + localToFile.getLocation().getURI().getPath() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
 
268
                } catch (CoreException e) {
 
269
                }
 
270
                return name;
265
271
        }
266
272
 
267
273
        protected String toStringBase() {