提交 36f12d01 编写于 作者: S serge-rider

Connection pages fixes (anonymous)

上级 7d10bfa9
......@@ -673,7 +673,7 @@ public class DataSourceDescriptor
//final String oldName = getConnectionConfiguration().getUserName();
//final String oldPassword = getConnectionConfiguration().getUserPassword();
if (!isSavePassword()) {
if (!isSavePassword() && !getDriver().isAnonymousAccess()) {
// Ask for password
if (!DataSourceHandler.askForPassword(this, null, false)) {
DataSourceHandler.updateDataSourceObject(this);
......
......@@ -155,7 +155,7 @@ public abstract class ConnectionWizard extends Wizard implements INewWizard {
throw new InvocationTargetException(op.getConnectError());
}
if (op.getConnectStatus() == Status.CANCEL_STATUS) {
throw new InterruptedException();
throw new InterruptedException("cancel");
}
}
});
......@@ -175,8 +175,10 @@ public abstract class ConnectionWizard extends Wizard implements INewWizard {
MessageDialog.openInformation(getShell(), CoreMessages.dialog_connection_wizard_start_connection_monitor_success,
message);
} catch (InterruptedException ex) {
DBUserInterface.getInstance().showError(CoreMessages.dialog_connection_wizard_start_dialog_interrupted_title,
CoreMessages.dialog_connection_wizard_start_dialog_interrupted_message);
if (!"cancel".equals(ex.getMessage())) {
DBUserInterface.getInstance().showError(CoreMessages.dialog_connection_wizard_start_dialog_interrupted_title,
CoreMessages.dialog_connection_wizard_start_dialog_interrupted_message);
}
} catch (InvocationTargetException ex) {
DBUserInterface.getInstance().showError(
CoreMessages.dialog_connection_wizard_start_dialog_error_title,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册