}
// prepare CreationDescription for Java
Class<?> componentClass = m_object.getDescription().getComponentClass();
org.eclipse.wb.internal.core.model.description.ComponentDescription javaDescription =
ComponentDescriptionHelper.getDescription(editor, componentClass);
CreationDescription creationDescription = javaDescription.getCreation(null);
// update Java
String fieldTypeName = ReflectionUtils.getCanonicalName(componentClass);
String creationSource = creationDescription.getSource();
// apply generics
{
Set<Entry<String, TypeParameterDescription>> entrySet =
creationDescription.getTypeParameters().entrySet();
if (!entrySet.isEmpty()) {
fieldTypeName += "<";
for (Entry<String, TypeParameterDescription> entry : entrySet) {
// use type bounds, until we have dialog to ask type arguments
String typeArgument = entry.getValue().getTypeName();