childNodes = new LinkedHashSet<BeanMetadataNode>();
}
// Install a meta data node for every method level RequestMappings
for (IMethodMetadata mmd : metadata.getMethodMetaData()) {
RequestMappingMethodAnnotationMetadata requestMapping = (RequestMappingMethodAnnotationMetadata) mmd;
IMethod method = (IMethod) JdtUtils.getByHandle(requestMapping.getMethodHandle());
BeanMetadataNode node = new BeanMetadataNode(requestMapping.getMethodHandle());
node.setLabel(requestMapping.getValueAsText()
+ BeansUIPlugin.getLabelProvider().getText(method.getDeclaringType())
+ "." + BeansUIPlugin.getLabelProvider().getText(method)); //$NON-NLS-1$
node.setImage(BeansUIPlugin.getLabelProvider().getImage(method));
node.setLocation(requestMapping.getElementSourceLocation());
childNodes.add(node);
}
if (parent != null) {
parent.setChildren(childNodes.toArray());