use of org.erlide.ui.editors.erl.ErlangEditor in project erlide_eclipse by erlang.
the class EdocView method getInfoForSelection.
@Override
protected Object getInfoForSelection(final IWorkbenchPart part, final ISelection selection) {
if (selection instanceof ITextSelection && part instanceof ErlangEditor) {
final ITextSelection sel = (ITextSelection) selection;
final ErlangEditor editor = (ErlangEditor) part;
return ErlTextHover.getHoverInfoForOffset(sel.getOffset(), editor);
}
return null;
}
Aggregations