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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Permission (java.security)
    Legacy security code; do not use.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 PhpStorm Plugins
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