Beispiel #1
0
        private protected virtual void ExecuteChangeComment(WriteableChangeCommentOperation operation)
        {
            Node   ParentNode = operation.ParentNode;
            string NewText    = operation.NewText;

            IWriteableNodeState State = (IWriteableNodeState)GetState(ParentNode);

            Debug.Assert(State != null);

            string OldText = NodeTreeHelper.GetCommentText(State.Node);

            Debug.Assert(OldText != null);

            CommentHelper.Set(State.Node.Documentation, NewText);

            operation.Update(State, OldText);

            NotifyCommentChanged(operation);
        }