-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor FetchAndMergeEntry to MergingIdBasedFetcher in logic layer
- Create IdBasedFetcherFactory.java - Move class from gui to org.jabref.logic.importer.fetcher - Extract WebFetchers.getIdBasedFetcherForField as parameter for flexibility - Replace DialogService with NotificationService to improve UX - Rename class to MergingIdBasedFetcher for clarity - Update all usages of FetchAndMergeEntry
- Loading branch information
Showing
8 changed files
with
112 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/org/jabref/logic/importer/fetcher/IdBasedFetcherFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jabref.logic.importer.fetcher; | ||
|
||
import java.util.Optional; | ||
|
||
import org.jabref.logic.importer.IdBasedFetcher; | ||
import org.jabref.model.entry.field.Field; | ||
|
||
@FunctionalInterface | ||
public interface IdBasedFetcherFactory { | ||
Optional<IdBasedFetcher> getFetcherForField(Field field); | ||
} |
Oops, something went wrong.