bundles/org.eclipse.orion.client.editor/web/orion/editor/contentAssist.js
function(update, noContent) {
			var tooltip = mTooltip.Tooltip.getTooltip(this.contentAssist.textView);
			var self = this;
			var target = {
				getTooltipInfo: function() {
					var bounds = self.widget.parentNode.getBoundingClientRect();
					var tipArea = {width: 350, height: bounds.height, top: bounds.top};
					if ((bounds.left + bounds.width) >= document.documentElement.clientWidth){
						tipArea.left = bounds.left - tipArea.width;
						tipArea.left -= 10;
					} else {
						tipArea.left = bounds.left + bounds.width;
						tipArea.left += 10;
					}
					var info = {
						context: {proposal: self.proposals[self.selectedIndex]},
						anchorArea: bounds,
						tooltipArea: tipArea
					};
					return info;
				}
			};
			
			if (update) {
				tooltip.update(target, noContent);
			} else {
				tooltip.show(target, true, false);
			}
		}
function(update, noContent) {
			var tooltip = mTooltip.Tooltip.getTooltip(this.contentAssist.textView);
			var self = this;
			var target = {
				getTooltipInfo: function() {
					var bounds = self.widget.parentNode.getBoundingClientRect();
					var tipArea = {width: 350, height: bounds.height, top: bounds.top};
					if ((bounds.left + bounds.width) >= document.documentElement.clientWidth){
						tipArea.left = bounds.left - tipArea.width;
						tipArea.left -= 10;
					} else {
						tipArea.left = bounds.left + bounds.width;
						tipArea.left += 10;
					}
					var info = {
						context: {proposal: self.proposals[self.selectedIndex]},
						anchorArea: bounds,
						tooltipArea: tipArea
					};
					return info;
				}
			};
			
			if (update) {
				tooltip.update(target, noContent);
			} else {
				tooltip.show(target, true, false);
			}
		}
function ( update , noContent ) { var tooltip = mTooltip . Tooltip . getTooltip ( this . contentAssist . textView ) ; var self = this ; var target = { getTooltipInfo : function ( ) { var bounds = self . widget . parentNode . getBoundingClientRect ( ) ; var tipArea = { width : 350 , height : bounds . height , top : bounds . top } ; if ( ( bounds . left + bounds . width ) >= document . documentElement . clientWidth ) { tipArea . left = bounds . left - tipArea . width ; tipArea . left -= 10 ; } else { tipArea . left = bounds . left + bounds . width ; tipArea . left += 10 ; } var info = { context : { proposal : self . proposals [ self . selectedIndex ] } , anchorArea : bounds , tooltipArea : tipArea } ; return info ; } } ; if ( update ) { tooltip . update ( target , noContent ) ; } else { tooltip . show ( target , true , false ) ; } }
Opens the tooltip for the selected proposal beside the content assist window
@param update if false, the tooltip will be hidden then reopened with the new contents
@param noContent if true the current tooltip contents will not be replaced, just size and position updated
Opens the tooltip for the selected proposal beside the content assist window