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(); } }
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); }
public CommandState GetCommandState(RedoCommandArgs args) => GetCommandState();
public CommandState GetCommandState(RedoCommandArgs args) { return(GetCommandState()); }
bool ICommandHandler <RedoCommandArgs> .ExecuteCommand(RedoCommandArgs args, CommandExecutionContext executionContext) { GetUndoHistory(args.TextView).Redo(args.Count); return(true); }
CommandState ICommandHandler <RedoCommandArgs> .GetCommandState(RedoCommandArgs args) { return(GetUndoHistory(args.TextView).CanRedo ? CommandState.Available : CommandState.Unavailable); }
public CommandState GetCommandState(RedoCommandArgs args, Func <CommandState> nextHandler) { return(GetCommandState(nextHandler)); }