Author: adietish
Date: 2010-12-08 12:43:10 -0500 (Wed, 08 Dec 2010)
New Revision: 27245
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/CloudViewElement.java
Log:
corrected warnings
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/CloudViewElement.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/CloudViewElement.java 2010-12-08
17:08:06 UTC (rev 27244)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/CloudViewElement.java 2010-12-08
17:43:10 UTC (rev 27245)
@@ -46,19 +46,13 @@
public synchronized Object[] getChildren() {
if (!initialized.get()) {
DeltaCloud cloud = (DeltaCloud) getModel();
- CloudElementCategoryViewElement instances = new InstancesCategoryViewElement(cloud,
this, viewer);
- addCategory(instances);
- CloudElementCategoryViewElement images = new ImagesCategoryViewElement(cloud, this,
viewer);
- addCategory(images);
+ children.add(new InstancesCategoryViewElement(cloud, this, viewer));
+ children.add(new ImagesCategoryViewElement(cloud, this, viewer));
}
initialized.set(true);
return super.getChildren();
}
- private void addCategory(CloudElementCategoryViewElement categoryElement) {
- children.add(categoryElement);
- }
-
@Override
public IPropertySource getPropertySource() {
return new CloudPropertySource(getModel());
Show replies by date