mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 381450 - MapEntrySourceContainer cannot map file names from Windows to Linux
Updated CSourceNotFoundEditor.locateFile() to also convert windows paths.
This commit is contained in:
parent
fc304dbbe3
commit
569e7967d0
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
|
||||||
|
|
||||||
protected void locateFile() {
|
protected void locateFile() {
|
||||||
FileDialog dialog = new FileDialog(getEditorSite().getShell(), SWT.NONE);
|
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.setFilterNames(new String[] {SourceLookupUIMessages.CSourceNotFoundEditor_2});
|
||||||
dialog.setFilterExtensions(new String[] {"*." + missingPath.getFileExtension()}); //$NON-NLS-1$
|
dialog.setFilterExtensions(new String[] {"*." + missingPath.getFileExtension()}); //$NON-NLS-1$
|
||||||
String res = dialog.open();
|
String res = dialog.open();
|
||||||
|
|
Loading…
Add table
Reference in a new issue