Naming nit: most systems call this a "Save" dialog, not a "SaveAs" dialog. The name "showSaveDialog()" would be better.