Search in sources :

Example 26 with FieldFormatterCleanups

use of org.jabref.model.cleanup.FieldFormatterCleanups in project jabref by JabRef.

the class FieldFormatterCleanupsPanel method storeSettings.

public void storeSettings(MetaData metaData) {
    Objects.requireNonNull(metaData);
    FieldFormatterCleanups formatterCleanups = getFormatterCleanups();
    // if all actions have been removed, remove the save actions from the MetaData
    if (formatterCleanups.getConfiguredActions().isEmpty()) {
        metaData.clearSaveActions();
        return;
    }
    metaData.setSaveActions(formatterCleanups);
}
Also used : FieldFormatterCleanups(org.jabref.model.cleanup.FieldFormatterCleanups)

Aggregations

FieldFormatterCleanups (org.jabref.model.cleanup.FieldFormatterCleanups)26 Test (org.junit.Test)23 FieldFormatterCleanup (org.jabref.model.cleanup.FieldFormatterCleanup)20 LowerCaseFormatter (org.jabref.logic.formatter.casechanger.LowerCaseFormatter)10 BibEntry (org.jabref.model.entry.BibEntry)10 IdentityFormatter (org.jabref.logic.formatter.IdentityFormatter)3 NormalizeDateFormatter (org.jabref.logic.formatter.bibtexfields.NormalizeDateFormatter)3 NormalizePagesFormatter (org.jabref.logic.formatter.bibtexfields.NormalizePagesFormatter)3 StringReader (java.io.StringReader)2 CleanupActionsListModel (org.jabref.gui.cleanup.CleanupActionsListModel)2 NormalizeMonthFormatter (org.jabref.logic.formatter.bibtexfields.NormalizeMonthFormatter)2 ParserResult (org.jabref.logic.importer.ParserResult)2 ArrayList (java.util.ArrayList)1 TreeMap (java.util.TreeMap)1 ListDataEvent (javax.swing.event.ListDataEvent)1 ListDataListener (javax.swing.event.ListDataListener)1 ClearFormatter (org.jabref.logic.formatter.bibtexfields.ClearFormatter)1 HtmlToLatexFormatter (org.jabref.logic.formatter.bibtexfields.HtmlToLatexFormatter)1 LatexCleanupFormatter (org.jabref.logic.formatter.bibtexfields.LatexCleanupFormatter)1 UnitsToLatexFormatter (org.jabref.logic.formatter.bibtexfields.UnitsToLatexFormatter)1