bundles/org.eclipse.orion.client.ui/web/edit/setup.js
function(editorContext, ctxt) {
		var promise = new Deferred();
		var launchConf = this._setup.runBar.getSelectedLaunchConfiguration();
		if (launchConf) {
			this._projectClient.getProjectDeployService(launchConf.ServiceId, launchConf.Type).then(function(service){
				if (service && service.computeHoverInfo) {
					service.computeHoverInfo(launchConf, editorContext, ctxt).then(function(value) {
						promise.resolve(value);
					}, function() {
						promise.resolve(null);
					});
				} else {
					console.error('Failed to evaluate hover.');
					promise.resolve(null);
				}
			});
		} else {
			promise.resolve(null);
		}
		return promise;
	}
function(editorContext, ctxt) {
		var promise = new Deferred();
		var launchConf = this._setup.runBar.getSelectedLaunchConfiguration();
		if (launchConf) {
			this._projectClient.getProjectDeployService(launchConf.ServiceId, launchConf.Type).then(function(service){
				if (service && service.computeHoverInfo) {
					service.computeHoverInfo(launchConf, editorContext, ctxt).then(function(value) {
						promise.resolve(value);
					}, function() {
						promise.resolve(null);
					});
				} else {
					console.error('Failed to evaluate hover.');
					promise.resolve(null);
				}
			});
		} else {
			promise.resolve(null);
		}
		return promise;
	}
function ( editorContext , ctxt ) { var promise = new Deferred ( ) ; var launchConf = this . _setup . runBar . getSelectedLaunchConfiguration ( ) ; if ( launchConf ) { this . _projectClient . getProjectDeployService ( launchConf . ServiceId , launchConf . Type ) . then ( function ( service ) { if ( service && service . computeHoverInfo ) { service . computeHoverInfo ( launchConf , editorContext , ctxt ) . then ( function ( value ) { promise . resolve ( value ) ; } , function ( ) { promise . resolve ( null ) ; } ) ; } else { console . error ( 'Failed to evaluate hover.' ) ; promise . resolve ( null ) ; } } ) ; } else { promise . resolve ( null ) ; } return promise ; }
Evaluate the hover
@param {Object} editorContext
@param {Object} ctxt
@return {Promise.<string>}
Evaluate the hover