public Control createControl ( Composite parent ) { this . control = SWTFactory . createComposite ( parent , parent . getFont ( ) , 1 , 1 , GridData . FILL_HORIZONTAL ) ; final int nbColumns = this . enableSystemWideSelector ? 3 : 2 ; final Group group = SWTFactory . createGroup ( this . control , MoreObjects . firstNonNull ( this . title , Messages . SREConfigurationBlock_7 ) , nbColumns , 1 , GridData . FILL_HORIZONTAL ) ; if ( this . enableSystemWideSelector || ! this . projectProviderFactories . isEmpty ( ) ) { createSystemWideSelector ( group ) ; createProjectSelector ( group ) ; this . specificSREButton = SWTFactory . createRadioButton ( group , Messages . SREConfigurationBlock_2 , 1 ) ; this . specificSREButton . addSelectionListener ( new SelectionAdapter ( ) { @ SuppressWarnings ( "synthetic-access" ) @ Override public void widgetSelected ( SelectionEvent event ) { if ( SREConfigurationBlock . this . specificSREButton . getSelection ( ) ) { handleSpecificConfigurationSelected ( ) ; } } } ) ; } else { this . systemSREButton = null ; this . projectSREButton = null ; this . specificSREButton = null ; } createSRESelector ( group ) ; return getControl ( ) ; }
Creates this block s control in the given control .