mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Fix problem with dialog filter.
This commit is contained in:
parent
df1ef579ef
commit
5918fa62e3
1 changed files with 2 additions and 2 deletions
|
@ -155,8 +155,8 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
|
|||
protected void locateFile() {
|
||||
FileDialog dialog = new FileDialog(getEditorSite().getShell(), SWT.NONE);
|
||||
Path missingPath = new Path(missingFile);
|
||||
dialog.setFilterNames(new String[] {missingPath.lastSegment()});
|
||||
dialog.setFilterExtensions(new String[] {missingPath.getFileExtension()});
|
||||
dialog.setFilterNames(new String[] {SourceLookupUIMessages.getString("CSourceNotFoundEditor.2")}); //$NON-NLS-1$
|
||||
dialog.setFilterExtensions(new String[] {"*." + missingPath.getFileExtension()}); //$NON-NLS-1$
|
||||
String res = dialog.open();
|
||||
if (res != null) {
|
||||
Path newPath = new Path(res);
|
||||
|
|
Loading…
Add table
Reference in a new issue