public static IProposalComputer newSetterAttributeProposalComputer(ContentAssistRequest contentAssistRequest,IJavaProject javaProject){
  IDOMNode node=(IDOMNode)contentAssistRequest.getNode();
  if (node.getNodeType() != IDOMNode.ELEMENT_NODE) {
    return null;
  }
  String widgetTypeName=UiBinderXmlModelUtilities.computeQualifiedWidgetTypeName(node);
  if (widgetTypeName == null) {
    return null;
  }
  String matchString=contentAssistRequest.getMatchString();
  return new SetterAttributeProposalComputer(node,widgetTypeName,javaProject,matchString,contentAssistRequest.getReplacementBeginPosition(),matchString.length());
}

public static IProposalComputer newSetterAttributeProposalComputer ( ContentAssistRequest contentAssistRequest , IJavaProject javaProject ) { IDOMNode node = ( IDOMNode ) contentAssistRequest . getNode ( ) ; if ( node . getNodeType ( ) != IDOMNode . ELEMENT_NODE ) { return null ; } String widgetTypeName = UiBinderXmlModelUtilities . computeQualifiedWidgetTypeName ( node ) ; if ( widgetTypeName == null ) { return null ; } String matchString = contentAssistRequest . getMatchString ( ) ; return new SetterAttributeProposalComputer ( node , widgetTypeName , javaProject , matchString , contentAssistRequest . getReplacementBeginPosition ( ) , matchString . length ( ) ) ; }
creates a proposal computer for widget attributes based on existing type setter methods .
