Search in sources :

Example 1 with FromAuxDialog

use of org.jabref.gui.auximport.FromAuxDialog in project jabref by JabRef.

the class NewSubDatabaseAction method actionPerformed.

@Override
public void actionPerformed(ActionEvent e) {
    // Create a new, empty, database.
    FromAuxDialog dialog = new FromAuxDialog(jabRefFrame, "", true, jabRefFrame.getTabbedPane());
    dialog.setLocationRelativeTo(jabRefFrame);
    dialog.setVisible(true);
    if (dialog.generatePressed()) {
        Defaults defaults = new Defaults(Globals.prefs.getDefaultBibDatabaseMode());
        BasePanel bp = new BasePanel(jabRefFrame, new BibDatabaseContext(dialog.getGenerateDB(), defaults));
        jabRefFrame.addTab(bp, true);
        jabRefFrame.output(Localization.lang("New library created."));
    }
}
Also used : FromAuxDialog(org.jabref.gui.auximport.FromAuxDialog) BasePanel(org.jabref.gui.BasePanel) Defaults(org.jabref.model.Defaults) BibDatabaseContext(org.jabref.model.database.BibDatabaseContext)

Aggregations

BasePanel (org.jabref.gui.BasePanel)1 FromAuxDialog (org.jabref.gui.auximport.FromAuxDialog)1 Defaults (org.jabref.model.Defaults)1 BibDatabaseContext (org.jabref.model.database.BibDatabaseContext)1