Esempio n. 1
0
        public FindSymbolViewModel(IEnumerable <Declaration> declarations, DeclarationIconCache cache)
        {
            _declarations = declarations;
            _cache        = cache;

            Search(string.Empty);
        }
Esempio n. 2
0
        public FindSymbolCommand(IVBE vbe, RubberduckParserState state, DeclarationIconCache iconCache) : base(LogManager.GetCurrentClassLogger())
        {
            _vbe       = vbe;
            _state     = state;
            _iconCache = iconCache;

            _navigateCommand = new NavigateCommand(_state.ProjectsProvider);
        }
Esempio n. 3
0
        public FindSymbolCommand(IVBE vbe, RubberduckParserState state, ISelectionService selectionService, DeclarationIconCache iconCache) : base(LogManager.GetCurrentClassLogger())
        {
            _vbe       = vbe;
            _state     = state;
            _iconCache = iconCache;

            _navigateCommand = new NavigateCommand(selectionService);
        }
Esempio n. 4
0
 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);
        }
Esempio n. 6
0
 public FindSymbolCommand(IVBE vbe, RubberduckParserState state, DeclarationIconCache iconCache) : base(LogManager.GetCurrentClassLogger())
 {
     _vbe       = vbe;
     _state     = state;
     _iconCache = iconCache;
 }
Esempio n. 7
0
 public FindSymbolCommand(VBE vbe, RubberduckParserState state, DeclarationIconCache iconCache)
 {
     _vbe       = vbe;
     _state     = state;
     _iconCache = iconCache;
 }