Fixes #3678 - closing a dirty editor now prompts "Save changes to ...?"
with buttons Yes, No, Cancel. To pull this off, had to change signature
of Dialog.showDialog() function. I believe I found all of the routines
that call Dialog.showDialog() and updated them properly.