Protected
Readonly
fileProtected
Readonly
fileProtected
Readonly
labelProtected
Readonly
messageProtected
Readonly
onProtected
Readonly
onProtected
Readonly
openerProtected
saveProtected
saveProtected
saveProtected
shellProtected
addProtected
applyOptional
widget: WidgetThis method ensures a few things about widget
:
widget.getResourceUri()
actually returns a URI.widget.saveable.createSnapshot
or widget.saveable.serialize
is defined.widget.saveable.revert
is defined.Optional
widget: WidgetProtected
closeOptional
doRevert: booleanProtected
closeOptional
options: SaveableWidget.CloseOptionsProtected
createAn event is emitted when a layout is initialized, but before the shell is attached.
Saves the document
No op if the widget is not saveable.
Optional
options: SaveOptionsSave sourceWidget
to a new file picked by the user.
Optional
options: SaveOptionsProtected
saveSaves the current snapshot of the sourceWidget to the target file and replaces the widget with a new one that contains the snapshot content
widget to save as target
.
The new URI for the widget.
Protected
shouldProtected
shouldOptional
options: SaveableWidget.CloseOptionsProtected
updateProtected
updateProtected
window
Indicate if the document can be saved ('Save' command should be disable if not).