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

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

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

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

  @Override
  public void setReplaceAllMode(boolean replaceAll) {
    // http://bugs.eclipse.org/bugs/show_bug.cgi?id=18232
    IDocument document= TextViewer.this.getDocument();
    if (replaceAll) {
      if (document instanceof IDocumentExtension4) {
        IDocumentExtension4 extension= (IDocumentExtension4) document;
        fRewriteSession= extension.startRewriteSession(DocumentRewriteSessionType.SEQUENTIAL);
      } else {
        TextViewer.this.setRedraw(false);
        TextViewer.this.startSequentialRewriteMode(false);
        if (fUndoManager != null)
          fUndoManager.beginCompoundChange();
        fRememberedPartitioners= TextUtilities.removeDocumentPartitioners(document);
      }
    } else {
      if (document instanceof IDocumentExtension4) {
        IDocumentExtension4 extension= (IDocumentExtension4) document;
        extension.stopRewriteSession(fRewriteSession);
      } else {
        TextViewer.this.setRedraw(true);
        TextViewer.this.stopSequentialRewriteMode();
        if (fUndoManager != null)
          fUndoManager.endCompoundChange();
        if (fRememberedPartitioners != null)
          TextUtilities.addDocumentPartitioners(document, fRememberedPartitioners);
      }
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  @Override
  public void setReplaceAllMode(boolean replaceAll) {
    // http://bugs.eclipse.org/bugs/show_bug.cgi?id=18232
    IDocument document= TextViewer.this.getDocument();
    if (replaceAll) {
      if (document instanceof IDocumentExtension4) {
        IDocumentExtension4 extension= (IDocumentExtension4) document;
        fRewriteSession= extension.startRewriteSession(DocumentRewriteSessionType.SEQUENTIAL);
      } else {
        TextViewer.this.setRedraw(false);
        TextViewer.this.startSequentialRewriteMode(false);
        if (fUndoManager != null)
          fUndoManager.beginCompoundChange();
        fRememberedPartitioners= TextUtilities.removeDocumentPartitioners(document);
      }
    } else {
      if (document instanceof IDocumentExtension4) {
        IDocumentExtension4 extension= (IDocumentExtension4) document;
        extension.stopRewriteSession(fRewriteSession);
      } else {
        TextViewer.this.setRedraw(true);
        TextViewer.this.stopSequentialRewriteMode();
        if (fUndoManager != null)
          fUndoManager.endCompoundChange();
        if (fRememberedPartitioners != null)
          TextUtilities.addDocumentPartitioners(document, fRememberedPartitioners);
      }
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

  extension.stopRewriteSession(rewriteSession);
} else {
  stopSequentialRewriteMode();
  setRedraw(true);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  extension.stopRewriteSession(rewriteSession);
} else {
  stopSequentialRewriteMode();
  setRedraw(true);
org.eclipse.jface.textTextViewerstopSequentialRewriteMode

Javadoc

Sets the sequential rewrite mode of the viewer's 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

  • Finding current android device location
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Top plugins for WebStorm
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