public class FileLinksUpgradeWarning extends java.lang.Object implements PostOpenAction
Constructor and Description |
---|
FileLinksUpgradeWarning() |
Modifier and Type | Method and Description |
---|---|
boolean |
isActionNecessary(ParserResult pr)
This method should be performed if the major/minor versions recorded in the ParserResult
are less than or equal to 2.2.
|
boolean |
linksFound(BibtexDatabase database,
java.lang.String[] fields)
Check the database to find out whether any of a set of fields are used
for any of the entries.
|
void |
makeChanges(BasePanel panel,
ParserResult pr,
boolean upgradePrefs,
boolean upgradeDatabase,
java.lang.String fileDir)
This method performs the actual changes.
|
void |
performAction(BasePanel panel,
ParserResult pr)
This method presents a dialog box explaining and offering to make the
changes.
|
public boolean isActionNecessary(ParserResult pr)
isActionNecessary
in interface PostOpenAction
pr
- public void performAction(BasePanel panel, ParserResult pr)
performAction
in interface PostOpenAction
panel
- pr
- public boolean linksFound(BibtexDatabase database, java.lang.String[] fields)
database
- The bib database.fields
- The set of fields to look for.public void makeChanges(BasePanel panel, ParserResult pr, boolean upgradePrefs, boolean upgradeDatabase, java.lang.String fileDir)
panel
- pr
- fileDir
- The path to the file directory to set, or null if it should not be set.