FlexTable errTable = new FlexTable();
errTable.setStyleName( "build-Results" );
for ( int i = 0; i < rs.size(); i++ ) {
int row = i;
final BuilderResultLine res = rs.get( i );
errTable.setWidget( row,
0,
new Image( ImageResources.INSTANCE.error() ) );
if ( res.getAssetFormat().equals( "package" ) ) {
errTable.setText( row,
1,
TestScenarioConstants.INSTANCE.packageConfigurationProblem1() + res.getMessage() );
} else {
errTable.setText( row,
1,
"[" + res.getAssetName() + "] " + res.getMessage() );
}
}
ScrollPanel scroll = new ScrollPanel( errTable );