Пример #1
0
        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();
        }
Пример #2
0
		public void Setup()
		{
			this.Viewer = new CodeViewer();
			this.Viewer.Language = PredefinedLanguage.MsSql;
			this.EditController = new EditingController(Viewer);
		}