예제 #1
0
        public void Execute(EditorCommand command)
        {
            _logger.Debug($"Start execution of the editor command ({command.Content})");

            try
            {
                NativeCommander.GetExecutingFunction(new NativeCommand(":write " + command.Content.Trim()))();
            }
            catch (Exception error)
            {
                ErrorHandler.ShowError(error);
            }
        }
예제 #2
0
        public void Execute(NativeCommand command)
        {
            _logger.Debug($"Start execution of the native command ({command.Content})");

            try
            {
                NativeCommander.GetExecutingFunction(command)();
            }
            catch (Exception error) when(error.GetType() != typeof(InterruptedExecutionException))
            {
                ErrorHandler.ShowError(error);
            }
        }