Package org.eclipse.wb.internal.core.model.description

Examples of org.eclipse.wb.internal.core.model.description.CreationDescription


  public IObjectPresentation getPresentation() {
    return m_presentation;
  }

  private Image getCreationIcon(String creationId) {
    CreationDescription creation = getDescription().getCreation(creationId);
    return creation != null ? creation.getIcon() : null;
  }
View Full Code Here


    }
    // 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();
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.description.CreationDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.