protected InteractiveRefactoringBase(
     ISelectionProvider selectionProvider,
     IRefactoringUserInteraction <TModel> userInteraction)
     : base(selectionProvider)
 {
     _userInteraction = userInteraction;
 }
 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.º 3
0
        public AnnotateDeclarationCommand(
            AnnotateDeclarationRefactoringAction annotateAction,
            AnnotateDeclarationFailedNotifier failureNotifier,
            RefactoringUserInteraction <IAnnotateDeclarationPresenter, AnnotateDeclarationModel> userInteraction,
            IVbeEvents vbeEvents,
            RubberduckParserState state)
            : base(vbeEvents)
        {
            _annotateAction  = annotateAction;
            _failureNotifier = failureNotifier;
            _userInteraction = userInteraction;
            _state           = state;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Exemplo n.º 4
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);
        }