1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

import wizard file dialog says Save As when it should say Open

This commit is contained in:
Mike Kucera 2010-03-16 17:28:07 +00:00
parent c5bb4beda7
commit 6fd9d65358

View file

@ -418,7 +418,8 @@ abstract public class ProjectSettingsWizardPage extends WizardPage implements IP
browseButton.setLayoutData(new GridData());
browseButton.addSelectionListener(new SelectionAdapter() {
@Override public void widgetSelected(SelectionEvent e) {
FileDialog fileDialog = new FileDialog(getShell(), SWT.SAVE);
int type = (strategy instanceof ProjectSettingsImportStrategy) ? SWT.OPEN : SWT.SAVE;
FileDialog fileDialog = new FileDialog(getShell(), type);
fileDialog.setFilterExtensions(new String[] {"*." + FILENAME_EXTENSION}); //$NON-NLS-1$
String filePath = fileDialog.open();
if(filePath != null)