Author: adietish
Date: 2011-02-15 05:13:39 -0500 (Tue, 15 Feb 2011)
New Revision: 29153
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
Log:
[JBIDE-8420] storing credentials before loading children (was: loaded children and stored
afterwards. storing was skipped since loading threw an exception)
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2011-02-14
23:32:17 UTC (rev 29152)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2011-02-15
10:13:39 UTC (rev 29153)
@@ -98,17 +98,16 @@
boolean nameChanged = updateName(name);
boolean connectionPropertiesChanged = updateConnectionProperties(url, username,
password);
- if (connectionPropertiesChanged) {
- client = createClient(url, username, password);
- loadChildren();
- }
-
if (nameChanged || connectionPropertiesChanged) {
this.passwordStore.update(new DeltaCloudPasswordStorageKey(name, username),
password);
// TODO: move to notification based approach
DeltaCloudManager.getDefault().saveClouds();
}
+ if (connectionPropertiesChanged) {
+ client = createClient(url, username, password);
+ loadChildren();
+ }
}
private boolean updateName(String name) {
Show replies by date