protected RefactorCommandBase(IRefactoring refactoring, IRefactoringFailureNotifier failureNotifier, IParserStatusProvider parserStatusProvider)
        {
            Refactoring          = refactoring;
            ParserStatusProvider = parserStatusProvider;
            FailureNotifier      = failureNotifier;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
        protected RefactorCodePaneCommandBase(
            IRefactoring refactoring,
            IRefactoringFailureNotifier failureNotifier,
            ISelectionProvider selectionProvider,
            IParserStatusProvider parserStatusProvider)
            : base(refactoring, failureNotifier, parserStatusProvider)
        {
            SelectionProvider = selectionProvider;

            AddToCanExecuteEvaluation(SpecializedEvaluateCanExecute);
        }
 public RenameFolderCommand(
     RenameFolderRefactoringAction refactoringAction,
     RefactoringUserInteraction <IRenameFolderPresenter, RenameFolderModel> userInteraction,
     RenameFolderFailedNotifier failureNotifier,
     IParserStatusProvider parserStatusProvider,
     IVbeEvents vbeEvents,
     RubberduckParserState state)
     : base(refactoringAction, userInteraction, failureNotifier, parserStatusProvider, vbeEvents)
 {
     _state = state;
 }
 public AnnotateSelectedMemberCommand(
     AnnotateDeclarationRefactoring refactoring,
     AnnotateDeclarationFailedNotifier failureNotifier,
     ISelectionProvider selectionProvider,
     IParserStatusProvider parserStatusProvider,
     RubberduckParserState state,
     ISelectedDeclarationProvider selectedDeclarationProvider)
     : base(refactoring, failureNotifier, selectionProvider, parserStatusProvider, state)
 {
     _selectedDeclarationProvider = selectedDeclarationProvider;
 }
        protected AnnotateDeclarationCodePaneCommandBase(
            AnnotateDeclarationRefactoring refactoring,
            AnnotateDeclarationFailedNotifier failureNotifier,
            ISelectionProvider selectionProvider,
            IParserStatusProvider parserStatusProvider,
            RubberduckParserState state)
            : base(refactoring, failureNotifier, selectionProvider, parserStatusProvider)
        {
            _state = state;

            AddToCanExecuteEvaluation(SpecializedEvaluateCanExecute);
        }
 protected CodeExplorerInteractiveRefactoringCommandBase(
     IRefactoringAction <TModel> refactoringAction,
     IRefactoringUserInteraction <TModel> refactoringUserInteraction,
     IRefactoringFailureNotifier failureNotifier,
     IParserStatusProvider parserStatusProvider,
     IVbeEvents vbeEvents)
     : base(refactoringAction, failureNotifier, parserStatusProvider, vbeEvents)
 {
     _refactoringUserInteraction = refactoringUserInteraction;
     _refactoringAction          = refactoringAction;
     _failureNotifier            = failureNotifier;
 }
Exemplo n.º 7
0
        public RenameCommand(
            RenameRefactoring refactoring,
            RenameFailedNotifier renameFailedNotifier,
            IParserStatusProvider parserStatusProvider,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _refactoring          = refactoring;
            _failureNotifier      = renameFailedNotifier;
            _parserStatusProvider = parserStatusProvider;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemplo n.º 8
0
        protected CodeExplorerRefactoringCommandBase(
            IRefactoringAction <TModel> refactoringAction,
            IRefactoringFailureNotifier failureNotifier,
            IParserStatusProvider parserStatusProvider,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _refactoringAction = refactoringAction;
            _failureNotifier   = failureNotifier;

            _parserStatusProvider = parserStatusProvider;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemplo n.º 9
0
        public FindAllImplementationsCommand(
            IParserStatusProvider parserStatusProvider,
            ISelectedDeclarationProvider selectedDeclarationProvider,
            ISearchResultsWindowViewModel viewModel,
            FindAllImplementationsService finder,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _finder = finder;
            _selectedDeclarationProvider = selectedDeclarationProvider;
            _parserStatusProvider        = parserStatusProvider;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemplo n.º 10
0
        public CodeExplorerMoveToFolderCommand(
            MoveMultipleFoldersRefactoringAction moveFolders,
            RefactoringUserInteraction <IMoveMultipleFoldersPresenter, MoveMultipleFoldersModel> moveFoldersInteraction,
            MoveMultipleToFolderRefactoringAction moveToFolder,
            RefactoringUserInteraction <IMoveMultipleToFolderPresenter, MoveMultipleToFolderModel> moveToFolderInteraction,
            MoveToFolderRefactoringFailedNotifier failureNotifier,
            IParserStatusProvider parserStatusProvider,
            IVbeEvents vbeEvents,
            RubberduckParserState state)
            : base(moveFolders, moveToFolder, failureNotifier, parserStatusProvider, vbeEvents, state)
        {
            _moveFoldersInteraction  = moveFoldersInteraction;
            _moveToFolderInteraction = moveToFolderInteraction;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
        public CodeExplorerMoveToFolderDragAndDropCommand(
            MoveMultipleFoldersRefactoringAction moveFolders,
            MoveMultipleToFolderRefactoringAction moveToFolder,
            MoveToFolderRefactoringFailedNotifier failureNotifier,
            IParserStatusProvider parserStatusProvider,
            IVbeEvents vbeEvents,
            IMessageBox messageBox,
            IDeclarationFinderProvider declarationFinderProvider,
            RubberduckParserState state)
            : base(moveFolders, moveToFolder, failureNotifier, parserStatusProvider, vbeEvents, state)
        {
            _declarationFinderProvider = declarationFinderProvider;
            _messageBox = messageBox;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
        public SyncCodeExplorerCommand(
            IVBE vbe,
            IDeclarationFinderProvider declarationFinderProvider,
            IParserStatusProvider parserStatusProvider,
            ISelectedDeclarationProvider selectedDeclarationProvider,
            CodeExplorerViewModel explorer,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _vbe = vbe;
            _declarationFinderProvider   = declarationFinderProvider;
            _selectedDeclarationProvider = selectedDeclarationProvider;
            _parserStatusProvider        = parserStatusProvider;
            _explorer = explorer;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemplo n.º 13
0
        public FindAllReferencesCommand(
            IParserStatusProvider parserStatusProvider,
            IDeclarationFinderProvider declarationFinderProvider,
            ISelectedDeclarationProvider selectedDeclarationProvider,
            IVBE vbe,
            ISearchResultsWindowViewModel viewModel,
            FindAllReferencesService finder,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _parserStatusProvider        = parserStatusProvider;
            _declarationFinderProvider   = declarationFinderProvider;
            _selectedDeclarationProvider = selectedDeclarationProvider;
            _vbe    = vbe;
            _finder = finder;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
        protected CodeExplorerMoveToFolderCommandBase(
            MoveMultipleFoldersRefactoringAction moveFolders,
            MoveMultipleToFolderRefactoringAction moveToFolder,
            MoveToFolderRefactoringFailedNotifier failureNotifier,
            IParserStatusProvider parserStatusProvider,
            IVbeEvents vbeEvents,
            RubberduckParserState state)
            : base(vbeEvents)
        {
            _moveFolders  = moveFolders;
            _moveToFolder = moveToFolder;

            _parserStatusProvider = parserStatusProvider;
            _state           = state;
            _failureNotifier = failureNotifier;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
 protected RefactorDeclarationCommandBase(IRefactoring refactoring, IRefactoringFailureNotifier failureNotifier, IParserStatusProvider parserStatusProvider)
     : base(refactoring, failureNotifier, parserStatusProvider)
 {
 }