### Eclipse Workspace Patch 1.0 #P org.eclipse.cdt.ui Index: src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java =================================================================== RCS file: /n/cdt/joey_40/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java,v retrieving revision 1.1 diff -u -r1.1 OpenIncludeAction.java --- src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java 24 Jan 2007 16:24:15 -0000 1.1 +++ src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java 29 Jan 2007 20:59:49 -0000 @@ -9,6 +9,7 @@ * IBM Corporation - initial API and implementation * QNX Software System * Sergey Prigogin, Google - https://bugs.eclipse.org/bugs/show_bug.cgi?id=13221 + * Ed Swartz (Nokia) *******************************************************************************/ package org.eclipse.cdt.internal.ui.editor; @@ -44,6 +45,7 @@ import org.eclipse.cdt.core.parser.IScannerInfo; import org.eclipse.cdt.core.parser.IScannerInfoProvider; import org.eclipse.cdt.ui.CUIPlugin; +import org.eclipse.cdt.utils.PathUtil; import org.eclipse.cdt.internal.ui.CPluginImages; import org.eclipse.cdt.internal.ui.dialogs.ElementListSelectionDialog; @@ -165,13 +167,16 @@ throws CoreException { // in case it is an absolute path IPath includeFile= new Path(name); - if (includeFile.isAbsolute() && includeFile.toFile().exists()) { - list.add(includeFile); - return; + if (includeFile.isAbsolute()) { + includeFile = PathUtil.getCanonicalPath(includeFile); + if (includeFile.toFile().exists()) { + list.add(includeFile); + return; + } } HashSet foundSet = new HashSet(); for (int i = 0; i < includePaths.length; i++) { - IPath path = new Path(includePaths[i]).append(includeFile); + IPath path = PathUtil.getCanonicalPath(new Path(includePaths[i]).append(includeFile)); File file = path.toFile(); if (file.exists()) { IPath[] paths = resolveIncludeLink(path);