The mode is selected by the preferences whether to use Grobid or not.
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private final DialogService | |
| private final BibEntry | |
| private final int | |
| private final CliPreferences | |
| private final RuleBasedBibliographyPdfImporter | |
| private final StateManager |
| Access | Constructor and Description |
|---|---|
| public | ExtractReferencesAction(DialogService dialogService, StateManager stateManager, CliPreferences preferences)
|
| private | ExtractReferencesAction(@NonNull DialogService dialogService, @NonNull StateManager stateManager, @NonNull CliPreferences preferences, @Nullable BibEntry
the entry to handle (can be null) entry, @Nullable LinkedFile the linked file (can be null) linkedFile)Can be used to bind the action on a context menu in the linked file view (future work) |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private void | extractReferences(BibDatabaseContext databaseContext, Iterator<Path> fileListIterator, ParserResult result, BibEntry currentEntry)
|
| private static String | |
| private @NonNull Callable | |
| private Optional |
| COMMENT_NUMBER_PATTERN | back to summary |
|---|---|
| private static final Pattern COMMENT_NUMBER_PATTERN | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| FILES_LIMIT | back to summary |
|---|---|
| private final int FILES_LIMIT | |
| preferences | back to summary |
|---|---|
| private final CliPreferences preferences | |
| ruleBasedBibliographyPdfImporter | back to summary |
|---|---|
| private final RuleBasedBibliographyPdfImporter ruleBasedBibliographyPdfImporter | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| ExtractReferencesAction | back to summary |
|---|---|
| public ExtractReferencesAction(DialogService dialogService, StateManager stateManager, CliPreferences preferences) | |
| ExtractReferencesAction | back to summary |
|---|---|
| private ExtractReferencesAction(@NonNull DialogService dialogService, @NonNull StateManager stateManager, @NonNull CliPreferences preferences, @Nullable BibEntry entry, @Nullable LinkedFile linkedFile) Can be used to bind the action on a context menu in the linked file view (future work)
| |
| execute | back to summary |
|---|---|
public void execute()
| |
| extractReferences | back to summary |
|---|---|
| private void extractReferences() | |
| extractReferences | back to summary |
|---|---|
| private void extractReferences(BibDatabaseContext databaseContext, Iterator<Path> fileListIterator, ParserResult result, BibEntry currentEntry) | |
| getCites | back to summary |
|---|---|
| private static String getCites(List<BibEntry> entries, BibEntry currentEntry) Creates the field content for the "cites" field. The field contains the citation keys of the imported entries. Todo Move this part to logic somehow
| |
| getParserResultCallableOffline | back to summary |
|---|---|
| private @NonNull Callable | |
| getParserResultCallableOnline | back to summary |
|---|---|
| private Optional | |