mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[#449] Import memory window is not working as expected
Use `SWT.OPEN` style for import dialogs Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
This commit is contained in:
parent
5be8661c9b
commit
68ccd09ca1
3 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2020 Wind River Systems, Inc. and others.
|
* Copyright (c) 2006, 2023 Wind River Systems, Inc. and others.
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials
|
* This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License 2.0
|
* are made available under the terms of the Eclipse Public License 2.0
|
||||||
|
@ -157,7 +157,7 @@ public class PlainTextImporter implements IMemoryImporter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
FileDialog dialog = new FileDialog(parent.getShell(), SWT.SAVE);
|
FileDialog dialog = new FileDialog(parent.getShell(), SWT.OPEN);
|
||||||
dialog.setText(Messages.getString("PlainTextImporter.ChooseFile")); //$NON-NLS-1$
|
dialog.setText(Messages.getString("PlainTextImporter.ChooseFile")); //$NON-NLS-1$
|
||||||
dialog.setFilterExtensions(new String[] { "*.*;*" }); //$NON-NLS-1$
|
dialog.setFilterExtensions(new String[] { "*.*;*" }); //$NON-NLS-1$
|
||||||
dialog.setFilterNames(new String[] { Messages.getString("Importer.AllFiles") }); //$NON-NLS-1$
|
dialog.setFilterNames(new String[] { Messages.getString("Importer.AllFiles") }); //$NON-NLS-1$
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2020 Wind River Systems, Inc. and others.
|
* Copyright (c) 2006, 2023 Wind River Systems, Inc. and others.
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials
|
* This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License 2.0
|
* are made available under the terms of the Eclipse Public License 2.0
|
||||||
|
@ -140,7 +140,7 @@ public class RAWBinaryImporter implements IMemoryImporter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
FileDialog dialog = new FileDialog(parent.getShell(), SWT.SAVE);
|
FileDialog dialog = new FileDialog(parent.getShell(), SWT.OPEN);
|
||||||
dialog.setText(Messages.getString("RAWBinaryImporter.ChooseFile")); //$NON-NLS-1$
|
dialog.setText(Messages.getString("RAWBinaryImporter.ChooseFile")); //$NON-NLS-1$
|
||||||
dialog.setFilterExtensions(new String[] { "*.*;*" }); //$NON-NLS-1$
|
dialog.setFilterExtensions(new String[] { "*.*;*" }); //$NON-NLS-1$
|
||||||
dialog.setFilterNames(new String[] { Messages.getString("Importer.AllFiles") }); //$NON-NLS-1$
|
dialog.setFilterNames(new String[] { Messages.getString("Importer.AllFiles") }); //$NON-NLS-1$
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2020 Wind River Systems, Inc. and others.
|
* Copyright (c) 2006, 2023 Wind River Systems, Inc. and others.
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials
|
* This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License 2.0
|
* are made available under the terms of the Eclipse Public License 2.0
|
||||||
|
@ -194,7 +194,7 @@ public class SRecordImporter implements IMemoryImporter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
FileDialog dialog = new FileDialog(parent.getShell(), SWT.SAVE);
|
FileDialog dialog = new FileDialog(parent.getShell(), SWT.OPEN);
|
||||||
dialog.setText(Messages.getString("SRecordImporter.ChooseFile")); //$NON-NLS-1$
|
dialog.setText(Messages.getString("SRecordImporter.ChooseFile")); //$NON-NLS-1$
|
||||||
dialog.setFilterExtensions(new String[] { "*.*;*" }); //$NON-NLS-1$
|
dialog.setFilterExtensions(new String[] { "*.*;*" }); //$NON-NLS-1$
|
||||||
dialog.setFilterNames(new String[] { Messages.getString("Importer.AllFiles") }); //$NON-NLS-1$
|
dialog.setFilterNames(new String[] { Messages.getString("Importer.AllFiles") }); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue