Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorEugene Tarassov2012-11-08 18:45:39 +0000
committerPawel Piech2012-11-08 19:16:43 +0000
commit569e7967d01f1792c6a181a7540a4db586048d3a (patch)
tree9d79b4eb213df43939775ffd760092d312ce9eb5 /debug
parentfc304dbbe3edd867c54ebedf6b422ea6db09f7c9 (diff)
downloadorg.eclipse.cdt-569e7967d01f1792c6a181a7540a4db586048d3a.tar.gz
org.eclipse.cdt-569e7967d01f1792c6a181a7540a4db586048d3a.tar.xz
org.eclipse.cdt-569e7967d01f1792c6a181a7540a4db586048d3a.zip
Bug 381450 - MapEntrySourceContainer cannot map file names from Windows to Linux
Updated CSourceNotFoundEditor.locateFile() to also convert windows paths.
Diffstat (limited to 'debug')
-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 3a3441510f8..3f098fa3505 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();

Back to the top