Codota Logo
IVerticalRulerInfo.toDocumentLineNumber
Code IndexAdd Codota to your IDE (free)

How to use
toDocumentLineNumber
method
in
org.eclipse.jface.text.source.IVerticalRulerInfo

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.ui.editors

public int toDocumentLineNumber(int y_coordinate) {
  if (fDelegate instanceof IVerticalRulerInfo)
    ((IVerticalRulerInfo) fDelegate).toDocumentLineNumber(y_coordinate);
  return -1;
}
origin: org.eclipse/org.eclipse.ui.editors

  public int toDocumentLineNumber(int y_coordinate) {
    if (fDelegate instanceof IVerticalRulerInfo)
      ((IVerticalRulerInfo) fDelegate).toDocumentLineNumber(y_coordinate);
    return -1;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors

  @Override
  public int toDocumentLineNumber(int y_coordinate) {
    if (fDelegate instanceof IVerticalRulerInfo)
      return ((IVerticalRulerInfo)fDelegate).toDocumentLineNumber(y_coordinate);
    return -1;
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Returns the line of interest deduced from the mouse hover event.
 *
 * @param event a mouse hover event that triggered hovering
 * @return the document model line number on which the hover event occurred or <code>-1</code> if there is no event
 * @since 3.0
 */
private int getHoverLine(MouseEvent event) {
  return event == null ? -1 : fVerticalRulerInfo.toDocumentLineNumber(event.y);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Returns the line of interest deduced from the mouse hover event.
 *
 * @param event a mouse hover event that triggered hovering
 * @return the document model line number on which the hover event occurred or <code>-1</code> if there is no event
 * @since 3.0
 */
private int getHoverLine(MouseEvent event) {
  return event == null ? -1 : fVerticalRulerInfo.toDocumentLineNumber(event.y);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors

@Override
public int toDocumentLineNumber(int y_coordinate) {
  if (fDelegate instanceof IVerticalRulerInfo)
    return ((IVerticalRulerInfo)fDelegate).toDocumentLineNumber(y_coordinate);
  return -1;
}
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() {
  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));
}
org.eclipse.jface.text.sourceIVerticalRulerInfotoDocumentLineNumber

Javadoc

Translates a y-coordinate of the ruler's SWT control into the according line number of the document of the connected text viewer.

Popular methods of IVerticalRulerInfo

  • getLineOfLastMouseButtonActivity
    Returns the line number of the last mouse button activity. Based on the input document of the connec
  • getControl
    Returns the ruler's SWT control.

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Kernel (java.awt.image)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • JButton (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