summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-11-08 13:45:39 (EST)
committerPawel Piech2012-11-08 14:16:43 (EST)
commit569e7967d01f1792c6a181a7540a4db586048d3a (patch)
tree9d79b4eb213df43939775ffd760092d312ce9eb5
parentfc304dbbe3edd867c54ebedf6b422ea6db09f7c9 (diff)
downloadorg.eclipse.cdt-569e7967d01f1792c6a181a7540a4db586048d3a.zip
org.eclipse.cdt-569e7967d01f1792c6a181a7540a4db586048d3a.tar.gz
org.eclipse.cdt-569e7967d01f1792c6a181a7540a4db586048d3a.tar.bz2
Bug 381450 - MapEntrySourceContainer cannot map file names from Windows to Linux
Updated CSourceNotFoundEditor.locateFile() to also convert windows paths.
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java
index 3a34415..3f098fa 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditor.java
@@ -272,7 +272,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
protected void locateFile() {
FileDialog dialog = new FileDialog(getEditorSite().getShell(), SWT.NONE);
- Path missingPath = new Path(missingFile);
+ IPath missingPath = MapEntrySourceContainer.createPath(missingFile);
dialog.setFilterNames(new String[] {SourceLookupUIMessages.CSourceNotFoundEditor_2});
dialog.setFilterExtensions(new String[] {"*." + missingPath.getFileExtension()}); //$NON-NLS-1$
String res = dialog.open();