import { __decorate, __metadata } from "tslib";
import { AutoBind } from "../../Common/AutoBind";
import { StateManager } from "../StateManagement/StateManager";
import { TextMergeBuilderPage } from "./TextMergeBuilderPage";
export class XTextMergeEditContext {
    constructor(def) {
        this.mode = TextMergeBuilderPage.TextEditor;
        this.definition = def;
        this.definition.editContext = this;
    }
    onTextChange(value) {
        this.definition.value = value;
        StateManager.changed(this.definition);
        if (this.onUpdate) {
            this.onUpdate(value);
        }
    }
    onCopy(id) { }
    onCut(id) { }
    onDelete(id) { }
    onPaste(id) { }
}
__decorate([
    AutoBind,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object]),
    __metadata("design:returntype", void 0)
], XTextMergeEditContext.prototype, "onTextChange", null);
//# sourceMappingURL=XTextMergeEditContext.js.map