bundles/org.eclipse.orion.client.ui/web/orion/widgets/projects/RunBar.js
function(launchConfigurations) {
			if (launchConfigurations) {
				this._enableLaunchConfigurationsDropdown();
				launchConfigurations.sort(function(launchConf1, launchConf2) {
					return launchConf1.Name.localeCompare(launchConf2.Name);
				});
			} else {
				this._disableLaunchConfigurationsDropdown();
			}
			
			this._cacheLaunchConfigurations(launchConfigurations);
			
			if (launchConfigurations && launchConfigurations[0]) {
				// select first launch configuration
				var hash = this._getHash(launchConfigurations[0]);
				var cachedConfig = this._cachedLaunchConfigurations[hash];
				this.selectLaunchConfiguration(cachedConfig, true);
			} else {
				this.selectLaunchConfiguration(null);
			}
		}
function(launchConfigurations) {
			if (launchConfigurations) {
				this._enableLaunchConfigurationsDropdown();
				launchConfigurations.sort(function(launchConf1, launchConf2) {
					return launchConf1.Name.localeCompare(launchConf2.Name);
				});
			} else {
				this._disableLaunchConfigurationsDropdown();
			}
			
			this._cacheLaunchConfigurations(launchConfigurations);
			
			if (launchConfigurations && launchConfigurations[0]) {
				// select first launch configuration
				var hash = this._getHash(launchConfigurations[0]);
				var cachedConfig = this._cachedLaunchConfigurations[hash];
				this.selectLaunchConfiguration(cachedConfig, true);
			} else {
				this.selectLaunchConfiguration(null);
			}
		}
function ( launchConfigurations ) { if ( launchConfigurations ) { this . _enableLaunchConfigurationsDropdown ( ) ; launchConfigurations . sort ( function ( launchConf1 , launchConf2 ) { return launchConf1 . Name . localeCompare ( launchConf2 . Name ) ; } ) ; } else { this . _disableLaunchConfigurationsDropdown ( ) ; } this . _cacheLaunchConfigurations ( launchConfigurations ) ; if ( launchConfigurations && launchConfigurations [ 0 ] ) { // select first launch configuration var hash = this . _getHash ( launchConfigurations [ 0 ] ) ; var cachedConfig = this . _cachedLaunchConfigurations [ hash ] ; this . selectLaunchConfiguration ( cachedConfig , true ) ; } else { this . selectLaunchConfiguration ( null ) ; } }
Sets the list of launch configurations to be used by this run bar.
This method may be called more than once. Any previously cached
launch configurations will be replaced with the newly specified ones.

@param {Array} launchConfigurations An array of launch configurations
Sets the list of launch configurations to be used by this run bar . This method may be called more than once . Any previously cached launch configurations will be replaced with the newly specified ones .