Buggy code:
abstract class Tab { Button borderButton ; Button enabledButton ; Button visibleButton ; Button preferredButton ; Button tooSmallButton ; Button smallButton ; Button largeButton ; Button fillButton ; Composite tabFolderPage ; Group exampleGroup ; Group controlGroup ; Group listenersGroup ; Group otherGroup ; Group sizeGroup ; Group styleGroup ; Group colorGroup ; final ControlExample instance ; static final int TOO_SMALL_SIZE = 10 ; static final int SMALL_SIZE = 50 ; static final int LARGE_SIZE = 100 ; static final boolean RTL_SUPPORT_ENABLE = false ; Group orientationGroup ; Button rtlButton ; Button ltrButton ; Button defaultOrietationButton ; Button foregroundButton ; Button backgroundButton ; Button fontButton ; Image foregroundImage ; Image backgroundImage ; Color foregroundColor ; Color backgroundColor ; Font font ; Text eventConsole ; boolean logging = false ; boolean [ ] eventsFilter ; Combo nameCombo ; Label returnTypeLabel ; Button getButton ; Button setButton ; Text setText ; Text getText ; static final String [ ] EVENT_NAMES = new String [ ] { "None" , "KeyDown" , "KeyUp" , "MouseDown" , "MouseUp" , "MouseMove" , "MouseEnter" , "MouseExit" , "MouseDoubleClick" , "Paint" , "Move" , "Resize" , "Dispose" , "Selection" , "DefaultSelection" , "FocusIn" , "FocusOut" , "Expand" , "Collapse" , "Iconify" , "Deiconify" , "Close" , "Show" , "Hide" , "Modify" , "Verify" , "Activate" , "Deactivate" , "Help" , "DragDetect" , "Arm" , "Traverse" , "MouseHover" , "HardKeyDown" , "HardKeyUp" , "MenuDetect" , "SetData" , "MouseWheel" } ; Tab ( ControlExample instance ) { } void createControlGroup ( ) { } void createSetGetGroup ( ) { } void createControlWidgets ( ) { } void createColorGroup ( ) { } void createOtherGroup ( ) { } void createEventConsolePopup ( ) { } void createExampleGroup ( ) { } void createExampleWidgets ( ) { } void createListenerSelectionDialog ( ) { } void createListenersGroup ( ) { } String [ ] getMethodNames ( ) { } void createSetGetDialog ( int x , int y , String [ ] methodNames ) { } void resetLabels ( ) { } String setMethodName ( String methodRoot ) { } String parameterInfo ( String methodRoot ) { } void getValue ( ) { } Class getReturnType ( String methodRoot ) { } void setValue ( ) { } Object [ ] parameterForType ( String typeName , String value , Control control ) { } void createOrientationGroup ( ) { } void createSizeGroup ( ) { } void createStyleGroup ( ) { } Composite createTabFolderPage ( TabFolder tabFolder ) { } void disposeExampleWidgets ( ) { } void drawImage ( Image image , Color color ) { } String [ ] getCustomEventNames ( ) { } int getDefaultStyle ( ) { } Control [ ] getExampleWidgets ( ) { } Item [ ] getExampleWidgetItems ( ) { } String getTabText ( ) { } void hookExampleWidgetListeners ( ) { } void hookCustomListener ( String eventName ) { } void hookListeners ( Widget widget ) { } void log ( Event event ) { } void log ( String string ) { } void log ( String eventName , TypedEvent event ) { } void recreateExampleWidgets ( ) { } void resetColorsAndFonts ( ) { } void setExampleWidgetBackground ( ) { } void setExampleWidgetEnabled ( ) { } void setExampleWidgetFont ( ) { } void setExampleWidgetForeground ( ) { } void setExampleWidgetSize ( ) { int size = SWT . DEFAULT ; if ( ( preferredButton ) == null ) return ; if ( preferredButton . getSelection ( ) ) size = SWT . DEFAULT ; if ( tooSmallButton . getSelection ( ) ) size = Tab . TOO_SMALL_SIZE ; if ( smallButton . getSelection ( ) ) size = Tab . SMALL_SIZE ; if ( largeButton . getSelection ( ) ) size = Tab . LARGE_SIZE ; Control [ ] controls = getExampleWidgets ( ) ; for ( int i = 0 ; i < ( controls . length ) ; i ++ ) { GridData gridData ; if ( fillButton . getSelection ( ) ) { gridData = new GridData ( GridData . FILL_BOTH ) ; } else { gridData = new GridData ( ) ; gridData . widthHint = size ; gridData . heightHint = size ; } controls [ i ] . setLayoutData ( gridData ) ; } <START_BUG> exampleGroup . layout ( controls ) ; <END_BUG> } void setExampleWidgetState ( ) { } void setExampleWidgetVisibility ( ) { } }

Fix:
tabFolderPage . layout ( controls ) ;