congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TextViewer.addViewportListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addViewportListener
method
in
org.eclipse.jface.text.TextViewer

Best Java code snippets using org.eclipse.jface.text.TextViewer.addViewportListener (Showing top 4 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

fTextViewer.addViewportListener(fViewportListener);
fMouseMoveListener= new MouseMoveListener() {
  @Override
origin: org.eclipse.platform/org.eclipse.jface.text

fTextViewer.addViewportListener(fViewportListener);
fMouseMoveListener= new MouseMoveListener() {
  @Override
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void start(Rectangle informationArea) {
  if (fIsActive)
    return;
  fIsActive= true;
  if (fSubjectControl != null && !fSubjectControl.isDisposed()) {
    fSubjectControl.addControlListener(this);
    fSubjectControl.addMouseListener(this);
    fSubjectControl.addKeyListener(this);
  }
  fTextViewer.addViewportListener(this);
  IInformationControl fInformationControlToClose= getCurrentInformationControl2();
  if (fInformationControlToClose != null)
    fInformationControlToClose.addFocusListener(this);
  fDisplay= fSubjectControl.getDisplay();
  if (!fDisplay.isDisposed()) {
    fDisplay.addFilter(SWT.MouseMove, this);
    fDisplay.addFilter(SWT.FocusOut, this);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void start(Rectangle informationArea) {
  if (fIsActive)
    return;
  fIsActive= true;
  if (fSubjectControl != null && !fSubjectControl.isDisposed()) {
    fSubjectControl.addControlListener(this);
    fSubjectControl.addMouseListener(this);
    fSubjectControl.addKeyListener(this);
  }
  fTextViewer.addViewportListener(this);
  IInformationControl fInformationControlToClose= getCurrentInformationControl2();
  if (fInformationControlToClose != null)
    fInformationControlToClose.addFocusListener(this);
  fDisplay= fSubjectControl.getDisplay();
  if (!fDisplay.isDisposed()) {
    fDisplay.addFilter(SWT.MouseMove, this);
    fDisplay.addFilter(SWT.FocusOut, this);
  }
}
org.eclipse.jface.textTextVieweraddViewportListener

Popular methods of TextViewer

  • getTextWidget
  • getControl
  • doOperation
  • setDocument
  • modelRange2WidgetRange
    Same as #modelRange2WidgetRange(IRegion) just for a org.eclipse.jface.text.Position.
  • getRewriteTarget
  • getSelection
  • modelLine2WidgetLine
    Implements the contract of ITextViewerExtension5#modelLine2WidgetLine(int).
  • getDocument
  • setSelectedRange
  • setSelection
  • <init>
    Create a new text viewer with the given SWT style bits. The viewer is ready to use but does not have
  • setSelection,
  • <init>,
  • canDoOperation,
  • getVisibleRegion,
  • handleDispose,
  • invalidateTextPresentation,
  • setTopIndex,
  • _getVisibleRegionOffset,
  • activatePlugins,
  • addPresentation

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now