示例#1
0
 public void ExecuteCommand(RedoCommandArgs args, Action nextHandler)
 {
     if (_renameService.ActiveSession != null)
     {
         for (int i = 0; i < args.Count && _renameService.ActiveSession != null; i++)
         {
             _renameService.ActiveSession.UndoManager.Redo(args.SubjectBuffer);
         }
     }
     else
     {
         nextHandler();
     }
 }
示例#2
0
        public bool ExecuteCommand(RedoCommandArgs args, CommandExecutionContext context)
        {
            if (_renameService.ActiveSession != null)
            {
                for (var i = 0; i < args.Count && _renameService.ActiveSession != null; i++)
                {
                    _renameService.ActiveSession.UndoManager.Redo(args.SubjectBuffer);
                }

                return(true);
            }

            return(false);
        }
示例#3
0
 public CommandState GetCommandState(RedoCommandArgs args)
 => GetCommandState();
 public CommandState GetCommandState(RedoCommandArgs args)
 {
     return(GetCommandState());
 }
示例#5
0
 bool ICommandHandler <RedoCommandArgs> .ExecuteCommand(RedoCommandArgs args, CommandExecutionContext executionContext)
 {
     GetUndoHistory(args.TextView).Redo(args.Count);
     return(true);
 }
示例#6
0
 CommandState ICommandHandler <RedoCommandArgs> .GetCommandState(RedoCommandArgs args)
 {
     return(GetUndoHistory(args.TextView).CanRedo ? CommandState.Available : CommandState.Unavailable);
 }
示例#7
0
 public CommandState GetCommandState(RedoCommandArgs args, Func <CommandState> nextHandler)
 {
     return(GetCommandState(nextHandler));
 }