protected void selectSREFromConfig ( ILaunchConfiguration config ) { final boolean notify = this . sreBlock . getNotify ( ) ; final boolean changed ; try { this . sreBlock . setNotify ( false ) ; if ( this . accessor . getUseSystemSREFlag ( config ) ) { changed = this . sreBlock . selectSystemWideSRE ( ) ; } else if ( this . accessor . getUseProjectSREFlag ( config ) ) { changed = this . sreBlock . selectProjectSRE ( ) ; } else { final String sreId = this . accessor . getSREId ( config ) ; final ISREInstall sre = SARLRuntime . getSREFromId ( Strings . nullToEmpty ( sreId ) ) ; changed = this . sreBlock . selectSpecificSRE ( sre ) ; } } finally { this . sreBlock . setNotify ( notify ) ; } if ( changed ) { updateLaunchConfigurationDialog ( ) ; } }
Loads the SARL runtime environment from the launch configuration s preference store .