protected void createAgentNameEditor ( Composite parent , String text ) { final Group group = SWTFactory . createGroup ( parent , text , 2 , 1 , GridData . FILL_HORIZONTAL ) ; this . agentNameTextField = SWTFactory . createSingleText ( group , 1 ) ; this . agentNameTextField . addModifyListener ( new ModifyListener ( ) { @ SuppressWarnings ( "synthetic-access" ) @ Override public void modifyText ( ModifyEvent event ) { SARLAgentMainLaunchConfigurationTab . this . lastAgentNameError = null ; updateLaunchConfigurationDialog ( ) ; } } ) ; ControlAccessibleListener . addListener ( this . agentNameTextField , group . getText ( ) ) ; this . agentNameSearchButton = createPushButton ( group , Messages . MainLaunchConfigurationTab_1 , null ) ; this . agentNameSearchButton . addSelectionListener ( new SelectionListener ( ) { @ Override public void widgetDefaultSelected ( SelectionEvent event ) { // } @ Override public void widgetSelected ( SelectionEvent event ) { handleAgentNameSearchButtonSelected ( ) ; } } ) ; }
Creates the widgets for specifying a agent name .