Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » save file dialog overwriting the file
save file dialog overwriting the file [message #463616] Thu, 10 November 2005 19:43 Go to next message
Victoria is currently offline VictoriaFriend
Messages: 2
Registered: July 2009
Junior Member
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.
Re: save file dialog overwriting the file [message #463659 is a reply to message #463616] Fri, 11 November 2005 15:14 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
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.
>
Re: save file dialog overwriting the file [message #463685 is a reply to message #463659] Fri, 11 November 2005 16:27 Go to previous message
Victoria is currently offline VictoriaFriend
Messages: 2
Registered: July 2009
Junior Member
Thanks for the information.
Previous Topic:fast plot API using SWT?
Next Topic:TreeViewer with columns?
Goto Forum:
  


Current Time: Wed Apr 24 14:10:04 GMT 2024

Powered by FUDForum. Page generated in 0.49779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top