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

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

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

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

/**
 * Disables the redrawing of this text viewer. Subclasses may extend.
 * @since 2.0
 */
protected void disableRedrawing() {
  if (fViewerState == null)
    fViewerState= new ViewerState();
  if (fDocumentAdapter instanceof IDocumentAdapterExtension) {
    IDocumentAdapterExtension extension= (IDocumentAdapterExtension) fDocumentAdapter;
    extension.stopForwardingDocumentChanges();
  }
  if (fTextWidget != null && !fTextWidget.isDisposed())
    fTextWidget.setRedraw(false);
  fireRedrawChanged();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Disables the redrawing of this text viewer. Subclasses may extend.
 * @since 2.0
 */
protected void disableRedrawing() {
  if (fViewerState == null)
    fViewerState= new ViewerState();
  if (fDocumentAdapter instanceof IDocumentAdapterExtension) {
    IDocumentAdapterExtension extension= (IDocumentAdapterExtension) fDocumentAdapter;
    extension.stopForwardingDocumentChanges();
  }
  if (fTextWidget != null && !fTextWidget.isDisposed())
    fTextWidget.setRedraw(false);
  fireRedrawChanged();
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Enables the redrawing of this text viewer.
 *
 * @param topIndex the top index to be set or <code>-1</code>
 * @since 3.0
 */
protected void enabledRedrawing(int topIndex) {
  if (fDocumentAdapter instanceof IDocumentAdapterExtension) {
    IDocumentAdapterExtension extension= (IDocumentAdapterExtension) fDocumentAdapter;
    StyledText textWidget= getTextWidget();
    if (textWidget != null && !textWidget.isDisposed()) {
      extension.resumeForwardingDocumentChanges();
      if (topIndex > -1) {
        try {
          setTopIndex(topIndex);
        } catch (IllegalArgumentException x) {
          // changes don't allow for the previous top pixel
        }
      }
    }
  }
  if (fViewerState != null) {
    fViewerState.restore(topIndex == -1);
    fViewerState= null;
  }
  if (fTextWidget != null && !fTextWidget.isDisposed())
    fTextWidget.setRedraw(true);
  fireRedrawChanged();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Enables the redrawing of this text viewer.
 *
 * @param topIndex the top index to be set or <code>-1</code>
 * @since 3.0
 */
protected void enabledRedrawing(int topIndex) {
  if (fDocumentAdapter instanceof IDocumentAdapterExtension) {
    IDocumentAdapterExtension extension= (IDocumentAdapterExtension) fDocumentAdapter;
    StyledText textWidget= getTextWidget();
    if (textWidget != null && !textWidget.isDisposed()) {
      extension.resumeForwardingDocumentChanges();
      if (topIndex > -1) {
        try {
          setTopIndex(topIndex);
        } catch (IllegalArgumentException x) {
          // changes don't allow for the previous top pixel
        }
      }
    }
  }
  if (fViewerState != null) {
    fViewerState.restore(topIndex == -1);
    fViewerState= null;
  }
  if (fTextWidget != null && !fTextWidget.isDisposed())
    fTextWidget.setRedraw(true);
  fireRedrawChanged();
}
org.eclipse.jface.textTextViewerfireRedrawChanged

Javadoc

Informs all text listeners about the change of the viewer's redraw state.

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

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Github Copilot 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