public class OpenDatabaseAction extends MnemonicAwareAction
Constructor and Description |
---|
OpenDatabaseAction(JabRefFrame frame,
boolean showDialog) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
BasePanel |
addNewDatabase(ParserResult pr,
java.io.File file,
boolean raisePanel) |
static ParserResult |
loadDatabase(java.io.File fileToOpen,
java.lang.String encoding) |
void |
openIt(java.io.File file,
boolean raisePanel) |
static void |
performPostOpenActions(BasePanel panel,
ParserResult pr,
boolean mustRaisePanel)
Go through the list of post open actions, and perform those that need
to be performed.
|
putValue
public OpenDatabaseAction(JabRefFrame frame, boolean showDialog)
public void actionPerformed(java.awt.event.ActionEvent e)
public void openIt(java.io.File file, boolean raisePanel)
public static void performPostOpenActions(BasePanel panel, ParserResult pr, boolean mustRaisePanel)
panel
- The BasePanel where the database is shown.pr
- The result of the bib file parse operation.public BasePanel addNewDatabase(ParserResult pr, java.io.File file, boolean raisePanel)
public static ParserResult loadDatabase(java.io.File fileToOpen, java.lang.String encoding) throws java.io.IOException
java.io.IOException