use of org.hibernate.eclipse.utils.JoinedIterator in project jbosstools-hibernate by jbosstools.
the class PersistentClassWorkbenchAdapter method getChildren.
public Object[] getChildren(Object o) {
IPersistentClass pc = (IPersistentClass) o;
IProperty identifierProperty = pc.getIdentifierProperty();
List<IProperty> properties = new ArrayList<IProperty>();
if (identifierProperty != null) {
properties.add(identifierProperty);
}
Iterator<IProperty> propertyClosureIterator = new JoinedIterator<IProperty>(properties.iterator(), pc.getPropertyClosureIterator());
return BasicWorkbenchAdapter.toArray(propertyClosureIterator, IProperty.class, null);
}
Aggregations