public static IProposalComputer newUiFieldAttributeProposalComputer(ContentAssistRequest contentAssistRequest){
  IDOMNode node=(IDOMNode)contentAssistRequest.getNode();
  if (node.getNodeType() != IDOMNode.ELEMENT_NODE) {
    return null;
  }
  if (XmlUtilities.getAttribute(node,UiBinderConstants.UI_BINDER_FIELD_ATTRIBUTE_NAME,true,UiBinderConstants.UI_BINDER_XML_NAMESPACE) != null) {
    return null;
  }
  boolean isWidget=UiBinderXmlModelUtilities.computeQualifiedWidgetTypeName(node) != null;
  boolean isLikelyHtmlElement=node.getNamespaceURI() == null;
  if (!(isWidget || isLikelyHtmlElement)) {
    return null;
  }
  return createStaticTextProposalComputerForUiAttribute(UiBinderConstants.UI_BINDER_FIELD_ATTRIBUTE_NAME,node,contentAssistRequest);
}

public static IProposalComputer newUiFieldAttributeProposalComputer ( ContentAssistRequest contentAssistRequest ) { IDOMNode node = ( IDOMNode ) contentAssistRequest . getNode ( ) ; if ( node . getNodeType ( ) != IDOMNode . ELEMENT_NODE ) { return null ; } if ( XmlUtilities . getAttribute ( node , UiBinderConstants . UI_BINDER_FIELD_ATTRIBUTE_NAME , true , UiBinderConstants . UI_BINDER_XML_NAMESPACE ) != null ) { return null ; } boolean isWidget = UiBinderXmlModelUtilities . computeQualifiedWidgetTypeName ( node ) != null ; boolean isLikelyHtmlElement = node . getNamespaceURI ( ) == null ; if ( ! ( isWidget || isLikelyHtmlElement ) ) { return null ; } return createStaticTextProposalComputerForUiAttribute ( UiBinderConstants . UI_BINDER_FIELD_ATTRIBUTE_NAME , node , contentAssistRequest ) ; }
creates a proposal computer for the ui : field attribute .
