### 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.2 diff -u -r1.2 OpenIncludeAction.java --- src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java 30 Jan 2007 20:55:43 -0000 1.2 +++ src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java 2 Feb 2007 19:03:46 -0000 @@ -29,6 +29,7 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; +import org.eclipse.core.runtime.Platform; import org.eclipse.jface.action.Action; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ISelection; @@ -206,8 +207,11 @@ int numSegToRemove = rPath.segmentCount() - name.segmentCount(); IPath sPath = rPath.removeFirstSegments(numSegToRemove); sPath = sPath.setDevice(name.getDevice()); - if (sPath.equals(name)) + if (Platform.getOS().equals(Platform.OS_WIN32) ? + sPath.toOSString().equalsIgnoreCase(name.toOSString()) : + sPath.equals(name)) { list.add(rPath); + } return false; } return true;