Tabnine Logo
TextViewer.internalRevealRange
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * First makes sure that the layout is not deferred (workaround for Platform UI bug 375576) and
 * then reveals the given range of the visible document and.
 * <p>
 * NOTE: Only {@link #revealRange(int, int)} needs to use this method. The other methods are
 * called at a time where the editor is already realized.
 * </p>
 * 
 * @param start the start offset of the range
 * @param end the end offset of the range
 * @since 3.8.1, but only used/effective in 4.x
 */
private void internalRevealRangeWithWorkaround(int start, int end) {
  // XXX: Workaround for https://bugs.eclipse.org/375576
  final Shell shell= fTextWidget.getShell(); // only the shell layout is deferred
  int d= 0;
  for (; shell.isLayoutDeferred(); d++)
    shell.setLayoutDeferred(false);
  try {
    internalRevealRange(start, end);
  } finally {
    for (; d > 0; d--)
      shell.setLayoutDeferred(true);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * First makes sure that the layout is not deferred (workaround for Platform UI bug 375576) and
 * then reveals the given range of the visible document and.
 * <p>
 * NOTE: Only {@link #revealRange(int, int)} needs to use this method. The other methods are
 * called at a time where the editor is already realized.
 * </p>
 *
 * @param start the start offset of the range
 * @param end the end offset of the range
 * @since 3.8.1, but only used/effective in 4.x
 */
private void internalRevealRangeWithWorkaround(int start, int end) {
  // XXX: Workaround for https://bugs.eclipse.org/375576
  final Shell shell= fTextWidget.getShell(); // only the shell layout is deferred
  int d= 0;
  for (; shell.isLayoutDeferred(); d++)
    shell.setLayoutDeferred(false);
  try {
    internalRevealRange(start, end);
  } finally {
    for (; d > 0; d--)
      shell.setLayoutDeferred(true);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

  internalRevealRange(widgetPos, widgetPos + length);
  selectionChanged(widgetPos, length);
} else {
origin: org.eclipse.platform/org.eclipse.jface.text

  internalRevealRange(widgetPos, widgetPos + length);
  selectionChanged(widgetPos, length);
} else {
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  internalRevealRange(widgetPos, widgetPos + length);
  selectionChanged(widgetPos, length);
} else {
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  internalRevealRange(widgetPos, widgetPos + length);
  selectionChanged(widgetPos, length);
} else {
org.eclipse.jface.textTextViewerinternalRevealRange

Javadoc

Reveals the given range of the visible document.

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

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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