i );
}
private void redrawLhs() {
for ( int i = 0; i < model.lhs.length; i++ ) {
IPattern pattern = model.lhs[i];
if ( pattern instanceof FactPattern ) {
addFactPatternWidget( i,
(FactPattern) pattern );
}
if ( pattern instanceof CompositeFactPattern ) {
addCompositeFactPatternWidget( i,
(CompositeFactPattern) pattern );
} else if ( pattern instanceof DSLSentence ) {
// skip for now
} else if ( pattern instanceof FreeFormLine ) {
addFreeFormLine( (FreeFormLine) pattern,
i,
false );
}
}
for ( int i = 0; i < model.lhs.length; i++ ) {
IPattern pattern = model.lhs[i];
if ( pattern instanceof DSLSentence ) {
addLHSDSLSentenceWidget( i,
(DSLSentence) pattern );
}
}