Author: adietish
Date: 2010-12-14 12:30:31 -0500 (Tue, 14 Dec 2010)
New Revision: 27465
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
Log:
[JBIDe-7889] added instance changed notification
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 2010-12-14
17:23:19 UTC (rev 27464)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2010-12-14
17:30:31 UTC (rev 27465)
@@ -472,8 +472,10 @@
private DeltaCloudInstance refreshInstance(DeltaCloudInstance deltaCloudInstance) throws
DeltaCloudException {
try {
+ DeltaCloudInstance[] instances = getInstancesRepository().get();
Instance newInstance = client.listInstances(deltaCloudInstance.getId());
deltaCloudInstance.setInstance(newInstance);
+ firePropertyChange(PROP_INSTANCES, instances, getInstancesRepository().get());
return deltaCloudInstance;
} catch (DeltaCloudClientException e) {
// TODO : internationalize strings