1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42: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:
Eugene Tarassov 2012-11-08 10:45:39 -08:00 committed by Pawel Piech
parent fc304dbbe3
commit 569e7967d0

View file

@ -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();