private void tryParseTypeAttribute(IDOMElement element){
  IDOMAttr typeAttr=(IDOMAttr)UiBinderXmlModelUtilities.getTypeAttribute(element);
  if (typeAttr == null) {
    return;
  }
  IRegion valueRegion=XmlUtilities.getAttributeValueRegion(typeAttr);
  if (valueRegion == null) {
    return;
  }
  String fqType=typeAttr.getNodeValue();
  if (fqType == null) {
    return;
  }
  final IType type=JavaModelSearch.findType(javaProject,fqType);
  if (!JavaModelSearch.isValidElement(type)) {
    problemMarkerManager.setTypeUndefinedError(valueRegion,fqType);
  }
 else {
    if (UiBinderXmlModelUtilities.isStyleElement(element)) {
      IType cssResourceType=ClientBundleUtilities.findCssResourceType(javaProject);
      if (cssResourceType != null) {
        try {
          if (!JavaUtilities.isSubtype(cssResourceType,type)) {
            problemMarkerManager.setNotCssResourceSubtypeError(valueRegion,fqType);
          }
        }
 catch (        JavaModelException e) {
          GWTPluginLog.logWarning(e,"Could not validate the <ui:style>'s type attribute.");
        }
      }
    }
  }
  javaTypeReferences.add(fqType);
}

private void tryParseTypeAttribute ( IDOMElement element ) { IDOMAttr typeAttr = ( IDOMAttr ) UiBinderXmlModelUtilities . getTypeAttribute ( element ) ; if ( typeAttr == null ) { return ; } IRegion valueRegion = XmlUtilities . getAttributeValueRegion ( typeAttr ) ; if ( valueRegion == null ) { return ; } String fqType = typeAttr . getNodeValue ( ) ; if ( fqType == null ) { return ; } final IType type = JavaModelSearch . findType ( javaProject , fqType ) ; if ( ! JavaModelSearch . isValidElement ( type ) ) { problemMarkerManager . setTypeUndefinedError ( valueRegion , fqType ) ; } else { if ( UiBinderXmlModelUtilities . isStyleElement ( element ) ) { IType cssResourceType = ClientBundleUtilities . findCssResourceType ( javaProject ) ; if ( cssResourceType != null ) { try { if ( ! JavaUtilities . isSubtype ( cssResourceType , type ) ) { problemMarkerManager . setNotCssResourceSubtypeError ( valueRegion , fqType ) ; } } catch ( JavaModelException e ) { GWTPluginLog . logWarning ( e , "Could not validate the <ui:style>'s type attribute." ) ; } } } } javaTypeReferences . add ( fqType ) ; }
parses the " type " attribute on < ui : with > and < ui : style > elements .
