Permalink
Browse files

[studio] Allow Studio to connection without password (fix #14)

  • Loading branch information...
cchantep
cchantep committed Feb 8, 2014
1 parent d7ed374 commit 924ef57d29285ad49c8674d76ceee97630a25c1a
Showing with 1 addition and 9 deletions.
  1. +1 −2 studio/src/main/java/acolyte/Studio.java
  2. +0 −7 studio/src/main/java/acolyte/StudioModel.java
@@ -216,7 +216,7 @@ public void setUp() {
try {
this.model.setDriver(JDBC.loadDriver(driverFile));
driverField.setText(driverPath);
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
} // end of catch
} else {
@@ -983,7 +983,6 @@ public Boolean apply(final Long r) {
}));
Binder.bind("user", this.model, "enabled[]", checkCon, txtLenOpts);
Binder.bind("password", this.model, "enabled[]", checkCon, txtLenOpts);
// Bindings for SQL test action
Binder.bind("text", sqlArea, "enabled[]", testSql, txtLenOpts);
@@ -74,7 +74,6 @@ public StudioModel() {
pcs.registerDependency("driver", new String[] { "connectionConfig" });
pcs.registerDependency("url", new String[] { "connectionConfig" });
pcs.registerDependency("user", new String[] { "connectionConfig" });
pcs.registerDependency("password", new String[] { "connectionConfig" });
pcs.registerDependency("charset", new String[] { "connectionConfig" });
pcs.registerDependency("connectionConfig",
@@ -147,13 +146,7 @@ public String getUser() {
* @see #getPassword
*/
public void setPassword(final String password) {
final String old = this.password;
this.password = password;
this.connectionConfig = System.currentTimeMillis();
this.connectionValidated = false;
this.pcs.firePropertyChange("password", old, this.password);
} // end of setPassword
/**

0 comments on commit 924ef57

Please sign in to comment.