Codota Logo
IAnnotationHoverExtension.getHoverControlCreator
Code IndexAdd Codota to your IDE (free)

How to use
getHoverControlCreator
method
in
org.eclipse.jface.text.source.IAnnotationHoverExtension

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • 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

  controlCreator= ((IInformationProviderExtension2) annotationHover).getInformationPresenterControlCreator();
else if (annotationHover instanceof IAnnotationHoverExtension)
  controlCreator= ((IAnnotationHoverExtension) annotationHover).getHoverControlCreator();
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

  controlCreator= ((IInformationProviderExtension2) annotationHover).getInformationPresenterControlCreator();
else if (annotationHover instanceof IAnnotationHoverExtension)
  controlCreator= ((IAnnotationHoverExtension) annotationHover).getHoverControlCreator();
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

  controlCreator= ((IInformationProviderExtension2) annotationHover).getInformationPresenterControlCreator();
else if (annotationHover instanceof IAnnotationHoverExtension)
  controlCreator= ((IAnnotationHoverExtension) annotationHover).getHoverControlCreator();
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

  controlCreator= ((IInformationProviderExtension2) annotationHover).getInformationPresenterControlCreator();
else if (annotationHover instanceof IAnnotationHoverExtension)
  controlCreator= ((IAnnotationHoverExtension) annotationHover).getHoverControlCreator();
org.eclipse.jface.text.sourceIAnnotationHoverExtensiongetHoverControlCreator

Javadoc

Returns the hover control creator of this annotation hover.

Popular methods of IAnnotationHoverExtension

  • getHoverInfo
    Returns the object which should be presented in the a hover popup window. The information is request
  • getHoverLineRange
    Returns the range of lines that include the given line number for which the same hover information i
  • canHandleMouseCursor
    Returns whether the provided information control can interact with the mouse cursor. I.e. the hover

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JList (javax.swing)
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