-
-
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.
Fixed ZBMathTest and extracted keyWordSeparator (#9485)
* Cleanup tests, removed getKeywordSeparator from ImportFormatPreferences and made it a record, applied simple ide suggestions * Fixed MathSciNetTest * Fixed checkstyle * Fixed AstrophysicsDataSystemTest
- Loading branch information
Showing
48 changed files
with
155 additions
and
254 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
68 changes: 7 additions & 61 deletions
68
src/main/java/org/jabref/logic/importer/ImportFormatPreferences.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 |
---|---|---|
@@ -1,71 +1,17 @@ | ||
package org.jabref.logic.importer; | ||
|
||
import javafx.beans.property.ReadOnlyObjectProperty; | ||
import javafx.beans.property.SimpleObjectProperty; | ||
|
||
import org.jabref.logic.bibtex.FieldContentFormatterPreferences; | ||
import org.jabref.logic.citationkeypattern.CitationKeyPatternPreferences; | ||
import org.jabref.logic.importer.fetcher.GrobidPreferences; | ||
import org.jabref.logic.preferences.DOIPreferences; | ||
import org.jabref.logic.xmp.XmpPreferences; | ||
import org.jabref.preferences.BibEntryPreferences; | ||
|
||
public class ImportFormatPreferences { | ||
|
||
private final ReadOnlyObjectProperty<BibEntryPreferences> bibEntryPreferences; | ||
private final CitationKeyPatternPreferences citationKeyPatternPreferences; | ||
private final FieldContentFormatterPreferences fieldContentFormatterPreferences; | ||
private final XmpPreferences xmpPreferences; | ||
private final DOIPreferences doiPreferences; | ||
private final GrobidPreferences grobidPreferences; | ||
|
||
public ImportFormatPreferences(BibEntryPreferences bibEntryPreferences, | ||
CitationKeyPatternPreferences citationKeyPatternPreferences, | ||
FieldContentFormatterPreferences fieldContentFormatterPreferences, | ||
XmpPreferences xmpPreferences, | ||
DOIPreferences doiPreferences, | ||
GrobidPreferences grobidPreferences) { | ||
this.bibEntryPreferences = new SimpleObjectProperty<>(bibEntryPreferences); | ||
this.citationKeyPatternPreferences = citationKeyPatternPreferences; | ||
this.fieldContentFormatterPreferences = fieldContentFormatterPreferences; | ||
this.xmpPreferences = xmpPreferences; | ||
this.doiPreferences = doiPreferences; | ||
this.grobidPreferences = grobidPreferences; | ||
} | ||
|
||
public DOIPreferences getDoiPreferences() { | ||
return doiPreferences; | ||
} | ||
|
||
public ReadOnlyObjectProperty<BibEntryPreferences> bibEntryPreferencesProperty() { | ||
return bibEntryPreferences; | ||
} | ||
|
||
public BibEntryPreferences getBibEntryPreferences() { | ||
return bibEntryPreferences.getValue(); | ||
} | ||
|
||
/** | ||
* @deprecated use {@link BibEntryPreferences#getKeywordSeparator} instead. | ||
*/ | ||
@Deprecated | ||
public Character getKeywordSeparator() { | ||
return bibEntryPreferencesProperty().getValue().getKeywordSeparator(); | ||
} | ||
|
||
public CitationKeyPatternPreferences getCitationKeyPatternPreferences() { | ||
return citationKeyPatternPreferences; | ||
} | ||
|
||
public FieldContentFormatterPreferences getFieldContentFormatterPreferences() { | ||
return fieldContentFormatterPreferences; | ||
} | ||
|
||
public XmpPreferences getXmpPreferences() { | ||
return xmpPreferences; | ||
} | ||
|
||
public GrobidPreferences getGrobidPreferences() { | ||
return grobidPreferences; | ||
} | ||
public record ImportFormatPreferences( | ||
BibEntryPreferences bibEntryPreferences, | ||
CitationKeyPatternPreferences citationKeyPatternPreferences, | ||
FieldContentFormatterPreferences fieldContentFormatterPreferences, | ||
XmpPreferences xmpPreferences, | ||
DOIPreferences doiPreferences, | ||
GrobidPreferences grobidPreferences) { | ||
} |
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
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
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
Oops, something went wrong.