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."));
}
}
Aggregations