protected void addSRE ( ) { final AddSREInstallWizard wizard = new AddSREInstallWizard ( createUniqueIdentifier ( ) , this . sreArray . toArray ( new ISREInstall [ this . sreArray . size ( ) ] ) ) ; final WizardDialog dialog = new WizardDialog ( getShell ( ) , wizard ) ; if ( dialog . open ( ) == Window . OK ) { final ISREInstall result = wizard . getCreatedSRE ( ) ; if ( result != null ) { this . sreArray . add ( result ) ; //refresh from model refreshSREListUI ( ) ; this . sresList . setSelection ( new StructuredSelection ( result ) ) ; //ensure labels are updated if ( ! this . sresList . isBusy ( ) ) { this . sresList . refresh ( true ) ; } updateUI ( ) ; // Autoselect the default SRE if ( getDefaultSRE ( ) == null ) { setDefaultSRE ( result ) ; } } } }
Add a SRE .