summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-11-08 13:45:39 (EST)
committerPawel Piech2012-11-08 14:30:50 (EST)
commit5d71e497081eb4da463a65cebd9bd8c38ff5b1b2 (patch)
tree5599c62b986b93eb79ff012d570ae46d7e9d1a5a
parentd8d28fcce9e76b7dfc95d1a956a615a36bd9d4a2 (diff)
downloadorg.eclipse.cdt-5d71e497081eb4da463a65cebd9bd8c38ff5b1b2.zip
org.eclipse.cdt-5d71e497081eb4da463a65cebd9bd8c38ff5b1b2.tar.gz
org.eclipse.cdt-5d71e497081eb4da463a65cebd9bd8c38ff5b1b2.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 d7bf6cd..0986d19 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
@@ -265,7 +265,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();