Exemplo n.º 1
0
        public void Do(ITextBuffer target)
        {
            if (done)
                throw new InvalidOperationException("Command is already applied.");

            target.SetCarets(before);
            target.ReplaceText(textAfter, autoIndent);
            after = target.GetCarets();
            target.Mark = target.Point;
            done = true;
        }