Class CrossRefObjectTextHover

java.lang.Object
org.eclipse.xtext.ui.editor.hover.AbstractHover
org.eclipse.xtext.ui.editor.hover.AbstractEObjectHover
org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover
org.yakindu.base.utils.jface.help.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 Details

    • CrossRefObjectTextHover

      public CrossRefObjectTextHover()
  • Method Details

    • 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
    • getHoverControlCreator

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

      @Deprecated public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion)
      Deprecated.
      Specified by:
      getHoverInfo in interface ITextHover
      Overrides:
      getHoverInfo in class org.eclipse.xtext.ui.editor.hover.DispatchingEObjectTextHover