use of org.eclipse.xtext.xbase.ui.hover.XbaseInformationControlInput in project xtext-xtend by eclipse.
the class XtendHoverProvider method getHoverInfo.
@Override
protected XtextBrowserInformationControlInput getHoverInfo(EObject element, IRegion hoverRegion, XtextBrowserInformationControlInput previous) {
XtextBrowserInformationControlInput hoverInfo = super.getHoverInfo(element, hoverRegion, previous);
if (hoverInfo instanceof XbaseInformationControlInput) {
XbaseInformationControlInput xbaseHoverInfo = (XbaseInformationControlInput) hoverInfo;
Pair<String, String> prefixAndSuffixPair = xtendHoverSerializer.computePreAndSuffix(element);
String unsugaredExpression = xtendHoverSerializer.computeUnsugaredExpression(element);
return new XbaseInformationControlInput(previous, xbaseHoverInfo, prefixAndSuffixPair.getFirst(), unsugaredExpression, prefixAndSuffixPair.getSecond());
}
return hoverInfo;
}
Aggregations