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

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

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

origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Basically same functionality as <code>ITextViewerExtension.setRedraw(boolean)</code>. Adds a
 * way for subclasses to pass in a desired top index that should be used when
 * <code>redraw</code> is <code>true</code>. If <code>topIndex</code> is -1, this method is
 * identical to <code>ITextViewerExtension.setRedraw(boolean)</code>.
 *
 * @see ITextViewerExtension#setRedraw(boolean)
 *
 * @param redraw <code>true</code> if redraw is enabled
 * @param topIndex the top index
 * @since 3.0
 */
protected final void setRedraw(boolean redraw, int topIndex) {
  if (!redraw) {
    ++ fRedrawCounter;
    if (fRedrawCounter == 1)
      disableRedrawing();
  } else {
    -- fRedrawCounter;
    if (fRedrawCounter == 0) {
      if (topIndex == -1)
        enabledRedrawing();
      else
        enabledRedrawing(topIndex);
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Basically same functionality as <code>ITextViewerExtension.setRedraw(boolean)</code>. Adds a
 * way for subclasses to pass in a desired top index that should be used when
 * <code>redraw</code> is <code>true</code>. If <code>topIndex</code> is -1, this method is
 * identical to <code>ITextViewerExtension.setRedraw(boolean)</code>.
 *
 * @see ITextViewerExtension#setRedraw(boolean)
 *
 * @param redraw <code>true</code> if redraw is enabled
 * @param topIndex the top index
 * @since 3.0
 */
protected final void setRedraw(boolean redraw, int topIndex) {
  if (!redraw) {
    ++ fRedrawCounter;
    if (fRedrawCounter == 1)
      disableRedrawing();
  } else {
    -- fRedrawCounter;
    if (fRedrawCounter == 0) {
      if (topIndex == -1)
        enabledRedrawing();
      else
        enabledRedrawing(topIndex);
    }
  }
}
org.eclipse.jface.textTextViewerdisableRedrawing

Javadoc

Disables the redrawing of this text viewer. Subclasses may extend.

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

  • Making http requests using okhttp
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top 12 Jupyter Notebook Extensions
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