|
Re: save file dialog overwriting the file [message #463659 is a reply to message #463616] |
Fri, 11 November 2005 15:14 |
Steve Northover Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=4727
It's a really old problem. Some platforms don't prompt. If we offer API to
prompt and this can't be implemented everywhere, then non-portable
applications that rely on prompting will be written and users won't be
prompted on platforms that don't have the feature, thus possibly losing
data. There are ways around this but none are nice.
"Victoria" <vbluvsht@ca.ibm.com> wrote in message
news:100a2d11556b059366c5fe08ea19eb64$1@www.eclipse.org...
> Hi,
>
> I need to implement a save file dialog in my application. Right now, I am
> using the FileDialog, but with this dialog, if you choose an existing
file,
> it doesn't prompt the user for confirmation if he/she wants to overwite
> the original file. I can check for this myself and open the confirmation
> dialog, but only after the save dialog is closed. I think it will be kind
> of annoying to the user seeing the dialog, closed and reopened again if
> they don't want to overwrite and want to choose a different destination.
>
> Can anyone suggest what I can use if I want the destination file existance
> checking to be done before the dialog is closed right after the save is
> clicked? Is there another class that provides this?
>
> Thanks.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.49779 seconds