public FindAllReferencesCommand(RubberduckParserState state, IVBE vbe, ISearchResultsWindowViewModel viewModel, FindAllReferencesService finder)
     : base(LogManager.GetCurrentClassLogger())
 {
     _state  = state;
     _vbe    = vbe;
     _finder = finder;
 }
        public CodeExplorerFindAllReferencesCommand(
            RubberduckParserState state,
            FindAllReferencesService finder,
            IVbeEvents vbeEvents)
            : base(vbeEvents)
        {
            _state  = state;
            _finder = finder;

            AddToCanExecuteEvaluation(SpecialEvaluateCanExecute);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        private static FindAllReferencesCommand ArrangeFindAllReferencesCommand(RubberduckParserState state,
                                                                                Mock <IVBE> vbe, ISearchResultsWindowViewModel viewModel, FindAllReferencesService finder,
                                                                                Mock <IVbeEvents> vbeEvents)
        {
            var selectionService           = new SelectionService(vbe.Object, state.ProjectsProvider);
            var selectedDeclarationService = new SelectedDeclarationProvider(selectionService, state);

            return(new FindAllReferencesCommand(state, state, selectedDeclarationService, vbe.Object, viewModel, finder, vbeEvents.Object));
        }
Ejemplo n.º 5
0
 private static FindAllReferencesCommand ArrangeFindAllReferencesCommand(RubberduckParserState state,
                                                                         Mock <IVBE> vbe, ISearchResultsWindowViewModel viewModel, FindAllReferencesService finder)
 {
     return(ArrangeFindAllReferencesCommand(state, vbe, viewModel, finder, MockVbeEvents.CreateMockVbeEvents(vbe)));
 }
 public CodeExplorerFindAllReferencesCommand(RubberduckParserState state, FindAllReferencesService finder)
 {
     _state  = state;
     _finder = finder;
 }