Author: adietish
Date: 2011-01-21 15:13:04 -0500 (Fri, 21 Jan 2011)
New Revision: 28488
Modified:
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
Log:
[JBIDE-8185] replaced null-argument by new ArrayList() in constructor
Modified:
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
===================================================================
---
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2011-01-21
20:07:53 UTC (rev 28487)
+++
branches/jbosstools-3.2.0.CR1/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2011-01-21
20:13:04 UTC (rev 28488)
@@ -38,6 +38,7 @@
public class DeltaCloud extends ObservablePojo {
public static final String PROP_INSTANCES = "instances";
+ public static final String PROP_INSTANCES_REMOVED = "instancesRemoved";
public static final String PROP_IMAGES = "images";
public static final String PROP_NAME = "name";
@@ -69,7 +70,7 @@
public DeltaCloud(String name, String url, String username, String password, Driver
driver)
throws DeltaCloudException {
- this(name, url, username, password, driver, IImageFilter.ALL_STRING,
IInstanceFilter.ALL_STRING, null);
+ this(name, url, username, password, driver, IImageFilter.ALL_STRING,
IInstanceFilter.ALL_STRING, new ArrayList<IInstanceAliasMapping>());
}
public DeltaCloud(String name, String url, String username, Driver driver, String
imageFilterRules,
@@ -500,6 +501,7 @@
if (result) {
if (DeltaCloudInstance.Action.DESTROY.equals(action)) {
repo.remove(instance);
+ firePropertyChange(PROP_INSTANCES_REMOVED, null, instance);
}
// TODO: remove notification with all instanceRepo, replace by
// notifying the changed instance
Show replies by date