static String createJsniBlock(IJavaProject project,String body,int indentationUnits){
  StringBuilder sb=new StringBuilder();
  sb.append("/*-{\n");
  sb.append(CodeFormatterUtil.createIndentString(indentationUnits + 1,project));
  if (body != null) {
    sb.append(body);
  }
  sb.append("\n");
  sb.append(CodeFormatterUtil.createIndentString(indentationUnits,project));
  sb.append("}-*/;\n");
  return sb.toString();
}

static String createJsniBlock ( IJavaProject project , String body , int indentationUnits ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "/*-{\n" ) ; sb . append ( CodeFormatterUtil . createIndentString ( indentationUnits + 1 , project ) ) ; if ( body != null ) { sb . append ( body ) ; } sb . append ( "\n" ) ; sb . append ( CodeFormatterUtil . createIndentString ( indentationUnits , project ) ) ; sb . append ( "}-*/;\n" ) ; return sb . toString ( ) ; }
creates the standard jsni delimiter blocks . this method is default access to facilitate testing .
