can-close? (augments, and augmentable only) in editor:file-mixin
This method is called to query the editor if is okay to close the editor. Although there is no visible effect associated with closing an editor, there may be some cleanup actions that need to be run when the user is finished with the editor (asking if it should be saved, for example).
(booleansendan-editor:file-mixincan-close?If the
allow-close-with-no-filename?method returns#f, this method checks to see if the file has been saved at all yet. If not, it asks the user about saving (and saves if they ask).If the
allow-close-with-no-filename?method returns#t, this method does as before, except only asks if the editor'sget-filenamemethod returns a path.Also calls inner.