A signal emitted when the document content changes.
The default kernel language of the document.
The default kernel name of the document.
The dirty state of the model.
This should be cleared when the document is loaded from or saved to disk.
Test whether the object has been disposed.
This property is always safe to access.
A mime type of the model.
It is never null
, the default mime type is text/plain
.
A signal emitted when a property changes.
The underlying IModelDB
instance in which model
data is stored.
Making direct edits to the values stored in theIModelDB
is not recommended, and may produce unpredictable results.
The read-only state of the model.
The currently selected code.
A signal emitted when the model state changes.
The text stored in the model.
Dispose of the resources held by the object.
If the object's dispose
method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Deserialize the model from JSON.
Should emit a [contentChanged] signal.
Deserialize the model from a string.
Should emit a [contentChanged] signal.
Initialize model state after initial data load.
This function must be called after the initial data is loaded to set up initial model state, such as an initial undo stack, etc.
Serialize the model to JSON.
Serialize the model to a string.
Generated using TypeDoc
The interface for a document model that represents code.