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); }
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); }
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)); }
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; }