Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 itemis AG ( and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at /
 package org.eclipse.xtext.ui.editor.hover;
import  org.eclipse.jface.text.IInformationControlCreator;
import  org.eclipse.jface.text.IRegion;
import  org.eclipse.jface.text.ITextViewer;

Sven Efftinge - Initial contribution and API

	public Object getHoverInfo(EObject first, ITextViewer textViewer, IRegion hoverRegion) {
		if (hoverProvider==null)
			return null;
		IInformationControlCreatorProvider creatorProvider = hoverProvider.getHoverInfo(firsttextViewerhoverRegion);
		if (creatorProvider==null)
			return null;
		this. = creatorProvider;
	public IInformationControlCreator getHoverControlCreator() {
	public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
		final Object hoverInfo2 = getHoverInfo2(textViewerhoverRegion);
		return hoverInfo2!=null ? hoverInfo2.toString() : null;
New to GrepCode? Check out our FAQ X