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

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

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

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

/**
 * Informs all text listeners about the change of the viewer's redraw state.
 * @since 2.0
 */
private void fireRedrawChanged() {
  fWidgetCommand.start= 0;
  fWidgetCommand.length= 0;
  fWidgetCommand.text= null;
  fWidgetCommand.event= null;
  updateTextListeners(fWidgetCommand);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Informs all text listeners about the change of the viewer's redraw state.
 * @since 2.0
 */
private void fireRedrawChanged() {
  fWidgetCommand.start= 0;
  fWidgetCommand.length= 0;
  fWidgetCommand.text= null;
  fWidgetCommand.event= null;
  updateTextListeners(fWidgetCommand);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  @Override
  public void documentChanged(DocumentEvent e) {
    if (fWidgetCommand.event == e)
      updateTextListeners(fWidgetCommand);
    fLastSentSelectionChange= null;
    handleVisibleDocumentChanged(e);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

  @Override
  public void documentChanged(DocumentEvent e) {
    if (fWidgetCommand.event == e)
      updateTextListeners(fWidgetCommand);
    fLastSentSelectionChange= null;
    handleVisibleDocumentChanged(e);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public final void invalidateTextPresentation() {
  if (fVisibleDocument != null) {
    fWidgetCommand.event= null;
    fWidgetCommand.start= 0;
    fWidgetCommand.length= fVisibleDocument.getLength();
    fWidgetCommand.text= fVisibleDocument.get();
    updateTextListeners(fWidgetCommand);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public final void invalidateTextPresentation() {
  if (fVisibleDocument != null) {
    fWidgetCommand.event= null;
    fWidgetCommand.start= 0;
    fWidgetCommand.length= fVisibleDocument.getLength();
    fWidgetCommand.text= fVisibleDocument.get();
    updateTextListeners(fWidgetCommand);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Invalidates the given range of the text presentation.
 *
 * @param offset the offset of the range to be invalidated
 * @param length the length of the range to be invalidated
 * @since 2.1
 */
@Override
public final void invalidateTextPresentation(int offset, int length) {
  if (fVisibleDocument != null) {
    IRegion widgetRange= modelRange2WidgetRange(new Region(offset, length));
    if (widgetRange != null) {
      fWidgetCommand.event= null;
      fWidgetCommand.start= widgetRange.getOffset();
      fWidgetCommand.length= widgetRange.getLength();
      try {
        fWidgetCommand.text= fVisibleDocument.get(widgetRange.getOffset(), widgetRange.getLength());
        updateTextListeners(fWidgetCommand);
      } catch (BadLocationException x) {
        // can not happen because of previous checking
      }
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Invalidates the given range of the text presentation.
 *
 * @param offset the offset of the range to be invalidated
 * @param length the length of the range to be invalidated
 * @since 2.1
 */
@Override
public final void invalidateTextPresentation(int offset, int length) {
  if (fVisibleDocument != null) {
    IRegion widgetRange= modelRange2WidgetRange(new Region(offset, length));
    if (widgetRange != null) {
      fWidgetCommand.event= null;
      fWidgetCommand.start= widgetRange.getOffset();
      fWidgetCommand.length= widgetRange.getLength();
      try {
        fWidgetCommand.text= fVisibleDocument.get(widgetRange.getOffset(), widgetRange.getLength());
        updateTextListeners(fWidgetCommand);
      } catch (BadLocationException x) {
        // can not happen because of previous checking
      }
    }
  }
}
org.eclipse.jface.textTextViewerupdateTextListeners

Javadoc

Informs all registered text listeners about the change specified by the widget command. This method does not use a robust iterator.

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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • 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