summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-11-08 13:45:39 (EST)
committer Pawel Piech2012-11-08 14:28:03 (EST)
commitd2c479fa41e6275e6744a3eb7f26452880f0ff59 (patch)
treec6c2d7e5ef2bce3a170579c3c9b23e1857a3f6fa
parentda9df79e538949f700d89fbde49b6677ff7a99ca (diff)
downloadorg.eclipse.cdt-d2c479fa41e6275e6744a3eb7f26452880f0ff59.zip
org.eclipse.cdt-d2c479fa41e6275e6744a3eb7f26452880f0ff59.tar.gz
org.eclipse.cdt-d2c479fa41e6275e6744a3eb7f26452880f0ff59.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();