public UndoRedoManager(CodeViewer viewer, EditingController editingController) { Viewer = viewer; EditingController = editingController; Caret = Viewer.Caret; Doc = Viewer.Document; Operations = new Stack <UndoRedoOperation>(); UndoneOperations = new Stack <UndoRedoOperation>(); StartNewUndoRedoOperation(); }
public void Setup() { this.Viewer = new CodeViewer(); this.Viewer.Language = PredefinedLanguage.MsSql; this.EditController = new EditingController(Viewer); }