Author: adietish
Date: 2010-11-09 11:05:57 -0500 (Tue, 09 Nov 2010)
New Revision: 26383
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVCategoryElement.java
Log:
[JBIDE-7518] loading images and instances from server after editing -> notifies
listeners of changes
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVCategoryElement.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVCategoryElement.java 2010-11-09
16:05:33 UTC (rev 26382)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVCategoryElement.java 2010-11-09
16:05:57 UTC (rev 26383)
@@ -119,12 +119,12 @@
return Collections.EMPTY_LIST;
}
List<Object> children = new ArrayList<Object>();
- for (Object member : itemsToMatch) {
- Object element = ((CloudViewElement) member).getElement();
- if (element != null) {
+ for (Object itemToMatch : itemsToMatch) {
+ Object elementToMatch = ((CloudViewElement) itemToMatch).getElement();
+ if (elementToMatch != null) {
for (Object child : getChildren()) {
Object childElement = ((CloudViewElement) child).getElement();
- if (element.equals(childElement)) {
+ if (elementToMatch.equals(childElement)) {
children.add(child);
}
}
Show replies by date