}
int layoutRow = 1;
int executionTraceLine = 0;
ExecutionTrace previousEx = null;
for ( int i = 0; i < fixtures.size(); i++ ) {
final Fixture fixture = fixtures.get( i );
if ( fixture instanceof ExecutionTrace ) {
previousEx = (ExecutionTrace) fixture;
editorLayout.setWidget( layoutRow,
0,
new ExpectPanel( asset.metaData.packageName,
previousEx,
scenario,
this ) );
executionTraceLine++;
if ( executionTraceLine >= listExecutionTrace.size() ) {
executionTraceLine = listExecutionTrace.size() - 1;
}
editorLayout.setWidget( layoutRow,
1,
new ExecutionWidget( previousEx,
showResults ) );
editorLayout.getFlexCellFormatter().setHorizontalAlignment( layoutRow,
2,
HasHorizontalAlignment.ALIGN_LEFT );
} else if ( fixture instanceof FixturesMap ) {
editorLayout.setWidget( layoutRow,
0,
new GivenLabelButton( previousEx,
scenario,
listExecutionTrace.get( executionTraceLine ),
this ) );
layoutRow++;
if ( fixture instanceof FixturesMap ) {
editorLayout.setWidget( layoutRow,
1,
newGivenPanel( listExecutionTrace,
executionTraceLine,
(FixturesMap) fixture ) );
}
} else {
FixtureList fixturesList = (FixtureList) fixture;
Fixture first = fixturesList.get( 0 );
if ( first instanceof VerifyFact ) {
editorLayout.setWidget( layoutRow,
1,
new VerifyFactsPanel( fixturesList,