tc.setWidth( column.getWidth() );
tc.setHideColumn( !column.isVisible() );
newMetaColumns.add( tc );
} else if ( modelCol instanceof AttributeCol52 ) {
AttributeCol52 tc = (AttributeCol52) modelCol;
tc.setWidth( column.getWidth() );
tc.setHideColumn( !column.isVisible() );
newAttributeColumns.add( tc );
} else if ( modelCol instanceof ConditionCol52 ) {
ConditionCol52 tc = (ConditionCol52) modelCol;
tc.setWidth( column.getWidth() );
tc.setHideColumn( !column.isVisible() );
Pattern52 p = model.getPattern( tc );
Pattern52 newPattern = getExistingNewPattern( newPatterns,
p );
if ( newPattern == null ) {
newPattern = clonePatternExcludingConditions( p );
newPatterns.add( newPattern );
}
newPattern.getConditions().add( tc );
} else if ( modelCol instanceof ActionCol52 ) {
ActionCol52 tc = (ActionCol52) modelCol;
tc.setWidth( column.getWidth() );
tc.setHideColumn( !column.isVisible() );
newActionColumns.add( tc );
}
}
model.setMetadataCols( newMetaColumns );