Codota Logo
OverviewRulerHoverManager.setMargins
Code IndexAdd Codota to your IDE (free)

How to use
setMargins
method
in
org.eclipse.jface.text.source.OverviewRulerHoverManager

Best Java code snippets using org.eclipse.jface.text.source.OverviewRulerHoverManager.setMargins (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Creates an overview hover manager with the given parameters. In addition,
 * the hovers anchor is RIGHT and the margin is 5 points to the right.
 *
 * @param ruler the overview ruler this manager connects to
 * @param sourceViewer the source viewer this manager connects to
 * @param annotationHover the annotation hover providing the information to be displayed
 * @param creator the information control creator
 */
public OverviewRulerHoverManager(IOverviewRuler ruler, ISourceViewer sourceViewer, IAnnotationHover annotationHover, IInformationControlCreator creator) {
  super(ruler, sourceViewer, annotationHover, creator);
  setAnchor(ANCHOR_LEFT);
  StyledText textWidget= sourceViewer.getTextWidget();
  if (textWidget != null) {
    ScrollBar verticalBar= textWidget.getVerticalBar();
    if (verticalBar != null)
      setMargins(verticalBar.getSize().x, 5);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Creates an overview hover manager with the given parameters. In addition,
 * the hovers anchor is RIGHT and the margin is 5 points to the right.
 *
 * @param ruler the overview ruler this manager connects to
 * @param sourceViewer the source viewer this manager connects to
 * @param annotationHover the annotation hover providing the information to be displayed
 * @param creator the information control creator
 */
public OverviewRulerHoverManager(IOverviewRuler ruler, ISourceViewer sourceViewer, IAnnotationHover annotationHover, IInformationControlCreator creator) {
  super(ruler, sourceViewer, annotationHover, creator);
  setAnchor(ANCHOR_LEFT);
  StyledText textWidget= sourceViewer.getTextWidget();
  if (textWidget != null) {
    ScrollBar verticalBar= textWidget.getVerticalBar();
    if (verticalBar != null)
      setMargins(verticalBar.getSize().x, 5);
  }
}
org.eclipse.jface.text.sourceOverviewRulerHoverManagersetMargins

Popular methods of OverviewRulerHoverManager

  • <init>
    Creates an overview hover manager with the given parameters. In addition, the hovers anchor is RIGHT
  • computeArea
    Determines graphical area covered for which the hover is valid.
  • getAnnotationHover
  • getHoverEventLocation
  • getSourceViewer
  • getVerticalRulerInfo
  • setAnchor
  • setCustomInformationControlCreator
  • setInformation

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • findViewById (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
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