Search in sources :

Example 1 with AutoCompleterFactory

use of org.jabref.logic.autocompleter.AutoCompleterFactory in project jabref by JabRef.

the class BasePanel method instantiateSearchAutoCompleter.

private void instantiateSearchAutoCompleter() {
    AutoCompletePreferences autoCompletePreferences = new AutoCompletePreferences(Globals.prefs);
    AutoCompleterFactory autoCompleterFactory = new AutoCompleterFactory(autoCompletePreferences, Globals.journalAbbreviationLoader);
    searchAutoCompleter = autoCompleterFactory.getPersonAutoCompleter();
    for (BibEntry entry : bibDatabaseContext.getDatabase().getEntries()) {
        searchAutoCompleter.addBibtexEntry(entry);
    }
}
Also used : BibEntry(org.jabref.model.entry.BibEntry) AutoCompleterFactory(org.jabref.logic.autocompleter.AutoCompleterFactory) AutoCompletePreferences(org.jabref.logic.autocompleter.AutoCompletePreferences)

Aggregations

AutoCompletePreferences (org.jabref.logic.autocompleter.AutoCompletePreferences)1 AutoCompleterFactory (org.jabref.logic.autocompleter.AutoCompleterFactory)1 BibEntry (org.jabref.model.entry.BibEntry)1