node.setChildren(children.toArray());
return new Object[] { node };
}
}
else if (element instanceof AutowireAnnotationMetadata) {
AutowireAnnotationMetadata metadata = (AutowireAnnotationMetadata) element;
List<Object> children = new ArrayList<Object>();
for (IMethodMetadata methodMetadata : metadata.getMethodMetaData()) {
IJavaElement je = JavaCore.create(methodMetadata.getHandleIdentifier());
BeanMetadataNode node = new BeanMetadataNode(methodMetadata.getHandleIdentifier());
node.setLabel(methodMetadata.getValueAsText() + BeansUIPlugin.getLabelProvider().getText(je));
node.setImage(BeansUIPlugin.getLabelProvider().getImage(je));
node.setLocation(methodMetadata.getElementSourceLocation());