Author: adietish
Date: 2010-12-15 06:06:55 -0500 (Wed, 15 Dec 2010)
New Revision: 27501
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/DeltaCloudViewItem.java
Log:
[JBIDE-7594]
* corrected concurrent modification exception when removing children from tree item
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/DeltaCloudViewItem.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/DeltaCloudViewItem.java 2010-12-15
10:26:31 UTC (rev 27500)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/DeltaCloudViewItem.java 2010-12-15
11:06:55 UTC (rev 27501)
@@ -59,11 +59,7 @@
@Override
public void run() {
- // viewer.getTree().setRedraw(false);
- for (final DeltaCloudViewItem<?> element : children) {
- viewer.remove(element);
- }
- // viewer.getTree().setRedraw(true);
+ viewer.remove(children.toArray());
}
});
children.clear();
Show replies by date