[kepler-dev] [Bug 3147] - Get rid of Swing componets in Ecogrid data access classes

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Mon Feb 18 15:58:14 PST 2008


------- Comment #1 from cxh at eecs.berkeley.edu  2008-02-18 15:58 -------
Actually, calling MessageHandler can result in problems, especially anything
that requires an answer, such as yesNoQuestion() and yesNoCancelQuestion().

It is usually better to throw an exception for problems than to ask the
user if they want to proceed, or to properly set the default behaviour

One use of yesNoQuestion() that seems to come up fairly often is whether a
file should be overwritten.  I've found the best thing is to have a parameter
"overwriteFiles" which defaults to true.  Otherwise, the user is bombarded
with dialogs.

More information about the Kepler-dev mailing list