public class HoverService
extends java.lang.Object
| Constructor and Description |
|---|
HoverService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
addIconDivs(org.eclipse.xtext.ide.labels.IImageDescription it,
java.lang.String nameHtml) |
protected HoverResult |
createHover(java.lang.Object element,
java.lang.String stateId,
org.eclipse.xtext.util.CancelIndicator cancelIndicator) |
HoverResult |
getHover(XtextWebDocumentAccess document,
int offset)
Compute a hover result at the given offset in the document.
|
HoverResult |
getHover(XtextWebDocumentAccess document,
java.lang.String proposal,
org.eclipse.xtext.util.ITextRegion selection,
int offset)
Compute a hover result for a content assist proposal at the given offset.
|
protected java.lang.String |
surroundWithDiv(java.lang.String html,
java.lang.String... divClasses) |
public HoverResult getHover(XtextWebDocumentAccess document, int offset) throws InvalidRequestException
InvalidRequestExceptionpublic HoverResult getHover(XtextWebDocumentAccess document, java.lang.String proposal, org.eclipse.xtext.util.ITextRegion selection, int offset) throws InvalidRequestException
InvalidRequestExceptionprotected HoverResult createHover(java.lang.Object element, java.lang.String stateId, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
protected java.lang.String addIconDivs(org.eclipse.xtext.ide.labels.IImageDescription it,
java.lang.String nameHtml)
protected java.lang.String surroundWithDiv(java.lang.String html,
java.lang.String... divClasses)