Class BslDispatchingEObjectTextHover

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

    public class BslDispatchingEObjectTextHover
    extends org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover
    Optimized EObjectTextHover. Doesn't freezes the UI.

    This implementation is aware of FakeCtor

    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.editor.hover.AbstractHover

        sourceViewer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jface.text.IInformationControlCreator getHoverControlCreator()  
      Object getHoverInfo​(org.eclipse.emf.ecore.EObject first, org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)  
      Object getHoverInfo2​(org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)  
      org.eclipse.jface.text.IRegion getHoverRegion​(org.eclipse.jface.text.ITextViewer textViewer, int offset)  
      protected org.eclipse.xtext.util.Pair<org.eclipse.emf.ecore.EObject,​org.eclipse.jface.text.IRegion> getXtextElementAt​(org.eclipse.xtext.resource.XtextResource resource, int offset)  
      • Methods inherited from class org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover

        getHoverInfo
      • Methods inherited from class org.eclipse.xtext.ui.editor.hover.AbstractEObjectHover

        getXtextElementAt
      • Methods inherited from class org.eclipse.xtext.ui.editor.hover.AbstractHover

        getDocument, getLineNumber, setSourceViewer
    • Constructor Detail

      • BslDispatchingEObjectTextHover

        public BslDispatchingEObjectTextHover()
    • Method Detail

      • getHoverRegion

        public org.eclipse.jface.text.IRegion getHoverRegion​(org.eclipse.jface.text.ITextViewer textViewer,
                                                             int offset)
        Specified by:
        getHoverRegion in interface org.eclipse.jface.text.ITextHover
        Overrides:
        getHoverRegion in class org.eclipse.xtext.ui.editor.hover.AbstractEObjectHover
      • getHoverInfo2

        public Object getHoverInfo2​(org.eclipse.jface.text.ITextViewer textViewer,
                                    org.eclipse.jface.text.IRegion hoverRegion)
        Specified by:
        getHoverInfo2 in interface org.eclipse.jface.text.ITextHoverExtension2
        Overrides:
        getHoverInfo2 in class org.eclipse.xtext.ui.editor.hover.AbstractEObjectHover
      • getHoverInfo

        public Object getHoverInfo​(org.eclipse.emf.ecore.EObject first,
                                   org.eclipse.jface.text.ITextViewer textViewer,
                                   org.eclipse.jface.text.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
      • getHoverControlCreator

        public org.eclipse.jface.text.IInformationControlCreator getHoverControlCreator()
        Specified by:
        getHoverControlCreator in interface org.eclipse.jface.text.ITextHoverExtension
        Overrides:
        getHoverControlCreator in class org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover
      • getXtextElementAt

        protected org.eclipse.xtext.util.Pair<org.eclipse.emf.ecore.EObject,​org.eclipse.jface.text.IRegion> getXtextElementAt​(org.eclipse.xtext.resource.XtextResource resource,
                                                                                                                                    int offset)
        Overrides:
        getXtextElementAt in class org.eclipse.xtext.ui.editor.hover.AbstractEObjectHover