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:
parent
c5bb4beda7
commit
6fd9d65358
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue