Top Fields Constructors Methods
org.jabref.gui.journals

public Class UndoableAbbreviator

extends Object
Class Inheritance
Imports
javax.swing.undo.CompoundEdit, org.jabref.gui.undo.UndoableFieldChange, org.jabref.logic.journals.Abbreviation, .JournalAbbreviationRepository, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.AMSField, .Field, .StandardField

Field Summary

Modifier and TypeField and Description
private final AbbreviationType
private final JournalAbbreviationRepository
private final boolean

Constructor Summary

AccessConstructor and Description
public
UndoableAbbreviator(JournalAbbreviationRepository journalAbbreviationRepository, AbbreviationType abbreviationType, boolean useFJournalField)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the entry was changed, false otherwise.
abbreviate
(BibDatabase
The database the entry belongs to, or null if no database.
database
,
BibEntry
The entry to be treated.
entry
,
Field
The field name (e.g. "journal")
fieldName
,
CompoundEdit
If the entry is changed, add an edit to this compound.
ce
)

Abbreviate the journal name of the given entry.

private String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

abbreviationTypeback to summary
private final AbbreviationType abbreviationType
journalAbbreviationRepositoryback to summary
private final JournalAbbreviationRepository journalAbbreviationRepository
useFJournalFieldback to summary
private final boolean useFJournalField

Constructor Detail

UndoableAbbreviatorback to summary
public UndoableAbbreviator(JournalAbbreviationRepository journalAbbreviationRepository, AbbreviationType abbreviationType, boolean useFJournalField)

Method Detail

abbreviateback to summary
public boolean abbreviate(BibDatabase database, BibEntry entry, Field fieldName, CompoundEdit ce)

Abbreviate the journal name of the given entry.

Parameters
database:BibDatabase

The database the entry belongs to, or null if no database.

entry:BibEntry

The entry to be treated.

fieldName:Field

The field name (e.g. "journal")

ce:CompoundEdit

If the entry is changed, add an edit to this compound.

Returns:boolean

true if the entry was changed, false otherwise.

getAbbreviatedNameback to summary
private String getAbbreviatedName(Abbreviation text)