protected void adjustGridLayout ( ) { int numColumns = calcNumberOfColumns ( ) ; ( ( GridLayout ) fieldEditorParent . getLayout ( ) ) . numColumns = numColumns ; if ( fields != null ) { for ( int i = 0 ; i < fields . size ( ) ; i ++ ) { FieldEditor fieldEditor = fields . get ( i ) ; fieldEditor . fillIntoGrid ( fieldEditorParent , numColumns ) ; } } }
Adjust the layout of the field editors so that they are properly aligned .