use of org.jabref.logic.bibtex.BibEntryWriter in project jabref by JabRef.
the class BasicAction method updateSourceView.
// update the bibtex source view and available List
private void updateSourceView() {
StringWriter sw = new StringWriter(200);
try {
new BibEntryWriter(new LatexFieldFormatter(Globals.prefs.getLatexFieldFormatterPreferences()), false).write(entry, sw, frame.getCurrentBasePanel().getBibDatabaseContext().getMode());
sourcePreview.setText(sw.getBuffer().toString());
} catch (IOException ex) {
LOGGER.error("Error in entry" + ": " + ex.getMessage(), ex);
}
fieldList.clearSelection();
}
Aggregations