Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.openoffice.style

public Class BstStyleLoader

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.ArrayList, .List, org.jabref.logic.openoffice.OpenOfficePreferences, org.jspecify.annotations.NullMarked, org.slf4j.Logger, .LoggerFactory

Manages the list of available BST styles, mirroring JStyleLoader.

Internal styles (IEEEtran, abbrv, APA) are bundled with JabRef and always available. External styles are user-supplied .bst files stored in preferences.

Field Summary

Modifier and TypeField and Description
private final List<BstStyle>
private static final List<String>
private final List<BstStyle>
private static final Logger
private final OpenOfficePreferences

Constructor Summary

AccessConstructor and Description
public
BstStyleLoader(OpenOfficePreferences openOfficePreferences)

Method Summary

Modifier and TypeMethod and Description
public void
addExternalStyle(BstStyle style)

Adds a user-supplied .bst file

public List<BstStyle>
getStyles()

Returns all styles - internal first, then external.

private void
private void
public boolean
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

externalStylesback to summary
private final List<BstStyle> externalStyles
INTERNAL_STYLE_PATHSback to summary
private static final List<String> INTERNAL_STYLE_PATHS
internalStylesback to summary
private final List<BstStyle> internalStyles
LOGGERback to summary
private static final Logger LOGGER
openOfficePreferencesback to summary
private final OpenOfficePreferences openOfficePreferences

Constructor Detail

BstStyleLoaderback to summary
public BstStyleLoader(OpenOfficePreferences openOfficePreferences)

Method Detail

addExternalStyleback to summary
public void addExternalStyle(BstStyle style)

Adds a user-supplied .bst file

getStylesback to summary
public List<BstStyle> getStyles()

Returns all styles - internal first, then external.

loadExternalStylesback to summary
private void loadExternalStyles()
loadInternalStylesback to summary
private void loadInternalStyles()
removeStyleback to summary
public boolean removeStyle(BstStyle style)
storeExternalStylesback to summary
private void storeExternalStyles()