db.setPassword(databasePassword);
return;
}
if (ErrorHandler.usingGUI()) {
DbPasswordDialog dialog =
new DbPasswordDialog(getDesignFrame(), db.getName(),
db.getUserName());
// This dialog is modal, so when we return the values have been
// filled.
db.setUserName(dialog.getUserName());
db.setPassword(dialog.getPassword());
}
else {
System.out.print(I18N.get("Report.user_name") + " ["
+ db.getUserName() + "]: ");
System.out.flush();