View | Details | Raw Unified | Return to bug 158190 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java (-1 / +5 lines)
Lines 29-34 Link Here
29
import org.eclipse.core.runtime.CoreException;
29
import org.eclipse.core.runtime.CoreException;
30
import org.eclipse.core.runtime.IPath;
30
import org.eclipse.core.runtime.IPath;
31
import org.eclipse.core.runtime.Path;
31
import org.eclipse.core.runtime.Path;
32
import org.eclipse.core.runtime.Platform;
32
import org.eclipse.jface.action.Action;
33
import org.eclipse.jface.action.Action;
33
import org.eclipse.jface.viewers.ILabelProvider;
34
import org.eclipse.jface.viewers.ILabelProvider;
34
import org.eclipse.jface.viewers.ISelection;
35
import org.eclipse.jface.viewers.ISelection;
Lines 206-213 Link Here
206
					int numSegToRemove = rPath.segmentCount() - name.segmentCount();
207
					int numSegToRemove = rPath.segmentCount() - name.segmentCount();
207
					IPath sPath = rPath.removeFirstSegments(numSegToRemove);
208
					IPath sPath = rPath.removeFirstSegments(numSegToRemove);
208
					sPath = sPath.setDevice(name.getDevice());
209
					sPath = sPath.setDevice(name.getDevice());
209
					if (sPath.equals(name))
210
					if (Platform.getOS().equals(Platform.OS_WIN32) ?
211
							sPath.toOSString().equalsIgnoreCase(name.toOSString()) :
212
							sPath.equals(name)) {
210
						list.add(rPath);
213
						list.add(rPath);
214
					}
211
					return false;
215
					return false;
212
				}
216
				}
213
				return true;
217
				return true;

Return to bug 158190