Class CrossRefObjectTextHover

  • All Implemented Interfaces:
    ITextHover, ITextHoverExtension, ITextHoverExtension2, org.eclipse.xtext.ui.editor.hover.IEObjectHover, org.eclipse.xtext.ui.editor.ISourceViewerAware

    public class CrossRefObjectTextHover
    extends org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover
    implements org.eclipse.xtext.ui.editor.hover.IEObjectHover
    Initially copied from DispatchingEObjectTextHover. This implementation bypasses the IGlobalServiceProvider because there is a check to the resource file extensions for cross references.
    • Constructor Detail

      • CrossRefObjectTextHover

        public CrossRefObjectTextHover()
    • Method Detail

      • getHoverInfo

        public Object getHoverInfo​(EObject first,
                                   ITextViewer textViewer,
                                   IRegion hoverRegion)
        Specified by:
        getHoverInfo in interface org.eclipse.xtext.ui.editor.hover.IEObjectHover
        Overrides:
        getHoverInfo in class org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover