|
@@ -19,7 +19,11 @@ import {
|
|
} from 'phosphor/lib/ui/widget';
|
|
} from 'phosphor/lib/ui/widget';
|
|
|
|
|
|
import {
|
|
import {
|
|
- IDocumentModel, IDocumentContext, IDocumentModelStateChange, IModelFactory,
|
|
|
|
|
|
+ IChangedArgs
|
|
|
|
+} from '../common/interfaces';
|
|
|
|
+
|
|
|
|
+import {
|
|
|
|
+ IDocumentModel, IDocumentContext, IModelFactory,
|
|
IWidgetFactory
|
|
IWidgetFactory
|
|
} from './index';
|
|
} from './index';
|
|
|
|
|
|
@@ -36,13 +40,6 @@ class DocumentModel implements IDocumentModel {
|
|
this._defaultLang = languagePreference || '';
|
|
this._defaultLang = languagePreference || '';
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * Get whether the model factory has been disposed.
|
|
|
|
- */
|
|
|
|
- get isDisposed(): boolean {
|
|
|
|
- return this._isDisposed;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* A signal emitted when the document content changes.
|
|
* A signal emitted when the document content changes.
|
|
*/
|
|
*/
|
|
@@ -51,7 +48,14 @@ class DocumentModel implements IDocumentModel {
|
|
/**
|
|
/**
|
|
* A signal emitted when the document state changes.
|
|
* A signal emitted when the document state changes.
|
|
*/
|
|
*/
|
|
- stateChanged: ISignal<IDocumentModel, IDocumentModelStateChange<any>>;
|
|
|
|
|
|
+ stateChanged: ISignal<IDocumentModel, IChangedArgs<any>>;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Get whether the model factory has been disposed.
|
|
|
|
+ */
|
|
|
|
+ get isDisposed(): boolean {
|
|
|
|
+ return this._isDisposed;
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* The dirty state of the document.
|
|
* The dirty state of the document.
|