public void writeBindingContext ( SourceWriter writer , Context context ) { // Avoid a trailing \n -- the GWT class source file composer will output an // ugly extra newline if we do that. String text = context . toString ( ) ; boolean first = true ; for ( String line : text . split ( "\n" ) ) { if ( first ) { first = false ; } else { writer . println ( ) ; } // Indent the line relative to its current location. writer.indent() // won't work, since it does the wrong thing in Javadoc. writer . print ( " " ) ; writer . print ( line ) ; } }
Writes out a binding context followed by a newline .