Codota Logo
IAnnotationHover.getHoverInfo
Code IndexAdd Codota to your IDE (free)

How to use
getHoverInfo
method
in
org.eclipse.jface.text.source.IAnnotationHover

Best Java code snippets using org.eclipse.jface.text.source.IAnnotationHover.getHoverInfo (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
protected void computeInformation() {
  Point location= getHoverEventLocation();
  int line= getVerticalRulerInfo().toDocumentLineNumber(location.y);
  IAnnotationHover hover= getAnnotationHover();
  IInformationControlCreator controlCreator= null;
  if (hover instanceof IAnnotationHoverExtension)
    controlCreator= ((IAnnotationHoverExtension)hover).getHoverControlCreator();
  setCustomInformationControlCreator(controlCreator);
  setInformation(hover.getHoverInfo(getSourceViewer(), line), computeArea(location.y));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
protected void computeInformation() {
  Point location= getHoverEventLocation();
  int line= getVerticalRulerInfo().toDocumentLineNumber(location.y);
  IAnnotationHover hover= getAnnotationHover();
  IInformationControlCreator controlCreator= null;
  if (hover instanceof IAnnotationHoverExtension)
    controlCreator= ((IAnnotationHoverExtension)hover).getHoverControlCreator();
  setCustomInformationControlCreator(controlCreator);
  setInformation(hover.getHoverInfo(getSourceViewer(), line), computeArea(location.y));
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
protected void computeInformation() {
  fAllowMouseExit= false;
  MouseEvent event= getHoverEvent();
  if ((event.stateMask & SWT.BUTTON_MASK) != 0) {
    setInformation(null, null);
    return;
  }
  IAnnotationHover hover= getHover(event);
  if (hover == null) {
    setInformation(null, null);
    return;
  }
  int line= getHoverLine(event);
  if (hover instanceof IAnnotationHoverExtension) {
    IAnnotationHoverExtension extension= (IAnnotationHoverExtension) hover;
    ILineRange range= extension.getHoverLineRange(fSourceViewer, line);
    setCustomInformationControlCreator(extension.getHoverControlCreator());
    range= adaptLineRange(range, line);
    if (range != null)
      setInformation(extension.getHoverInfo(fSourceViewer, range, computeNumberOfVisibleLines()), computeArea(range));
    else
      setInformation(null, null);
  } else {
    setCustomInformationControlCreator(null);
    setInformation(hover.getHoverInfo(fSourceViewer, line), computeArea(line));
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

  hoverInfo= extension.getHoverInfo(fSourceViewer, hoverLineRange, maxVisibleLines);
} else {
  hoverInfo= annotationHover.getHoverInfo(fSourceViewer, line);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
protected void computeInformation() {
  fAllowMouseExit= false;
  MouseEvent event= getHoverEvent();
  if ((event.stateMask & SWT.BUTTON_MASK) != 0) {
    setInformation(null, null);
    return;
  }
  IAnnotationHover hover= getHover(event);
  if (hover == null) {
    setInformation(null, null);
    return;
  }
  int line= getHoverLine(event);
  if (hover instanceof IAnnotationHoverExtension) {
    IAnnotationHoverExtension extension= (IAnnotationHoverExtension) hover;
    ILineRange range= extension.getHoverLineRange(fSourceViewer, line);
    setCustomInformationControlCreator(extension.getHoverControlCreator());
    range= adaptLineRange(range, line);
    if (range != null)
      setInformation(extension.getHoverInfo(fSourceViewer, range, computeNumberOfVisibleLines()), computeArea(range));
    else
      setInformation(null, null);
  } else {
    setCustomInformationControlCreator(null);
    setInformation(hover.getHoverInfo(fSourceViewer, line), computeArea(line));
  }
}
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

  hoverInfo= extension.getHoverInfo(fSourceViewer, hoverLineRange, maxVisibleLines);
} else {
  hoverInfo= annotationHover.getHoverInfo(fSourceViewer, line);
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

  hoverInfo= extension.getHoverInfo(sourceViewer, hoverLineRange, maxVisibleLines);
} else {
  hoverInfo= annotationHover.getHoverInfo(sourceViewer, line);
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

  hoverInfo= extension.getHoverInfo(sourceViewer, hoverLineRange, maxVisibleLines);
} else {
  hoverInfo= annotationHover.getHoverInfo(sourceViewer, line);
org.eclipse.jface.text.sourceIAnnotationHovergetHoverInfo

Javadoc

Returns the text which should be presented in the a hover popup window. This information is requested based on the specified line number.

Popular methods of IAnnotationHover

    Popular in Java

    • Start an intent from android
    • setRequestProperty (URLConnection)
    • notifyDataSetChanged (ArrayAdapter)
    • runOnUiThread (Activity)
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • Thread (java.lang)
      A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
    • InetAddress (java.net)
      This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
    • URL (java.net)
      A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
    • Collections (java.util)
      This class consists exclusively of static methods that operate on or return collections. It contains
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now