Re: Trash Can and Sun
- From: "Kenneth P. Turvey" <kt-usenet@xxxxxxxxxxxxxxxxxx>
- Date: 30 May 2008 13:59:48 GMT
On Fri, 30 May 2008 14:22:21 +0100, Tom Anderson wrote:
Maybe. If the semantics of Desktop.moveToTrash(File) are that it moves
something to the trash, then is a permanent delete a good fallback? If i
let a user put things in the trash, but actually delete them, then later
he finds out his files are gone forever, am i not guilty of misleading
him?
An exception might be best I suppose.
Actually maybe not. 99.9% of the time the exception will be handled by
deleting the file.
I wish that Java had a method for specifying default exception handlers
for cases when the exception isn't caught. Maybe with a different
hierarchy, ExceptionWithDefaultHanlder or some such.
--
Kenneth P. Turvey <kt-usenet@xxxxxxxxxxxxxxxxxx>
http://www.electricsenator.net
The only two things that are infinite in size are the universe and
human
stupidity. And I'm not completely sure about the universe.
-- Albert Einstein
.
- Follow-Ups:
- Re: Trash Can and Sun
- From: Arne Vajhøj
- Re: Trash Can and Sun
- From: Arne Vajhøj
- Re: Trash Can and Sun
- References:
- Trash Can and Sun
- From: Kenneth P. Turvey
- Re: Trash Can and Sun
- From: Volker Borchert
- Re: Trash Can and Sun
- From: Kenneth P. Turvey
- Re: Trash Can and Sun
- From: Tom Anderson
- Trash Can and Sun
- Prev by Date: Re: storing the text of an HTML page
- Next by Date: Re: debugging regexes
- Previous by thread: Re: Trash Can and Sun
- Next by thread: Re: Trash Can and Sun
- Index(es):
Relevant Pages
|
|