If confirm is true the user is prompted to confirm the command. Otherwise, the save happens without prompt.
The editor must belong to this workbench page.
@param editor the editor to close @param confirmtrue to ask the user before saving unsaved changes (recommended), and false to save unsaved changes without asking
@return true if the command succeeded, andfalse if the editor was not saved
| |
| |