public FindSymbolViewModel(IEnumerable <Declaration> declarations, DeclarationIconCache cache) { _declarations = declarations; _cache = cache; Search(string.Empty); }
public FindSymbolCommand(IVBE vbe, RubberduckParserState state, DeclarationIconCache iconCache) : base(LogManager.GetCurrentClassLogger()) { _vbe = vbe; _state = state; _iconCache = iconCache; _navigateCommand = new NavigateCommand(_state.ProjectsProvider); }
public FindSymbolCommand(IVBE vbe, RubberduckParserState state, ISelectionService selectionService, DeclarationIconCache iconCache) : base(LogManager.GetCurrentClassLogger()) { _vbe = vbe; _state = state; _iconCache = iconCache; _navigateCommand = new NavigateCommand(selectionService); }
public FindSymbolCommand( RubberduckParserState state, ISelectionService selectionService, DeclarationIconCache iconCache, IVbeEvents vbeEvents) : base(vbeEvents) { _state = state; _navigateCommand = new NavigateCommand(selectionService); }
public FindSymbolViewModel(IEnumerable <Declaration> declarations, DeclarationIconCache cache) { _declarations = declarations; _cache = cache; var initialResults = _declarations .Where(declaration => !ExcludedTypes.Contains(declaration.DeclarationType)) .OrderBy(declaration => declaration.IdentifierName.ToLowerInvariant()) .Select(declaration => new SearchResult(declaration, cache[declaration])) .ToList(); MatchResults = new ObservableCollection <SearchResult>(initialResults); }
public FindSymbolCommand(IVBE vbe, RubberduckParserState state, DeclarationIconCache iconCache) : base(LogManager.GetCurrentClassLogger()) { _vbe = vbe; _state = state; _iconCache = iconCache; }
public FindSymbolCommand(VBE vbe, RubberduckParserState state, DeclarationIconCache iconCache) { _vbe = vbe; _state = state; _iconCache = iconCache; }