protected void createMethodStubControls ( Composite composite , int columns , boolean enableConstructors , boolean enableInherited , boolean defaultEvents , boolean lifecycleFunctions ) { this . isConstructorCreationEnabled = enableConstructors ; this . isInheritedCreationEnabled = enableInherited ; this . isDefaultEventGenerated = defaultEvents ; this . isDefaultLifecycleFunctionsGenerated = lifecycleFunctions ; final List < String > nameList = new ArrayList <> ( 4 ) ; if ( enableConstructors ) { nameList . add ( Messages . AbstractNewSarlElementWizardPage_0 ) ; } if ( enableInherited ) { nameList . add ( Messages . AbstractNewSarlElementWizardPage_1 ) ; } if ( defaultEvents ) { nameList . add ( Messages . AbstractNewSarlElementWizardPage_17 ) ; } if ( lifecycleFunctions ) { nameList . add ( Messages . AbstractNewSarlElementWizardPage_18 ) ; } if ( nameList . isEmpty ( ) ) { return ; } final String [ ] buttonNames = new String [ nameList . size ( ) ] ; nameList . toArray ( buttonNames ) ; this . methodStubsButtons = new SelectionButtonDialogFieldGroup ( SWT . CHECK , buttonNames , 1 ) ; this . methodStubsButtons . setLabelText ( Messages . AbstractNewSarlElementWizardPage_2 ) ; final Control labelControl = this . methodStubsButtons . getLabelControl ( composite ) ; LayoutUtil . setHorizontalSpan ( labelControl , columns ) ; DialogField . createEmptySpace ( composite ) ; final Control buttonGroup = this . methodStubsButtons . getSelectionButtonsGroup ( composite ) ; LayoutUtil . setHorizontalSpan ( buttonGroup , columns - 1 ) ; }
Create the controls related to the behavior units to generate .