1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

Bug 578219: Make the FileDialog in Copy Build Log a Save dialog

Prior to this it was SWT.NONE which is now being interpreted as
an Open dialog which means an existing file must be selected.

In some conditions the SWT.NONE would allow a new file to be entered
that didn't exist already, so this did not affect everyone.

With this change a normal Save dialog is presented, and the OS confirm
overwrite is enabled.

Change-Id: Iea8c4211f8d9fe0c2f4d423780d91a62f6d3edab
This commit is contained in:
Jonah Graham 2022-01-14 12:19:46 -05:00
parent 51f7c4b4e4
commit a7746e4e9e

View file

@ -80,7 +80,8 @@ public class CopyBuildLogAction extends Action {
}
// open file dialog
FileDialog dialog = new FileDialog(shell, SWT.NONE);
FileDialog dialog = new FileDialog(shell, SWT.SAVE);
dialog.setOverwrite(true);
dialog.setText(ConsoleMessages.CopyLog_ChooseDestination);
String destLocation = dialog.open();