Tabnine Logo
ILineTrackerExtension.startRewriteSession
Code IndexAdd Tabnine to your IDE (free)

How to use
startRewriteSession
method
in
org.eclipse.jface.text.ILineTrackerExtension

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

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

@Override
public DocumentRewriteSession startRewriteSession(DocumentRewriteSessionType sessionType) {
  if (getActiveRewriteSession() != null)
    throw new IllegalStateException();
  fDocumentRewriteSession= new DocumentRewriteSession(sessionType);
  if (DEBUG)
    System.out.println("AbstractDocument: Starting rewrite session: " + fDocumentRewriteSession); //$NON-NLS-1$
  fireRewriteSessionChanged(new DocumentRewriteSessionEvent(this, fDocumentRewriteSession, DocumentRewriteSessionEvent.SESSION_START));
  startRewriteSessionOnPartitioners(fDocumentRewriteSession);
  ILineTracker tracker= getTracker();
  if (tracker instanceof ILineTrackerExtension) {
    ILineTrackerExtension extension= (ILineTrackerExtension) tracker;
    extension.startRewriteSession(fDocumentRewriteSession);
  }
  if (DocumentRewriteSessionType.SEQUENTIAL == sessionType)
    startSequentialRewrite(false);
  else if (DocumentRewriteSessionType.STRICTLY_SEQUENTIAL == sessionType)
    startSequentialRewrite(true);
  return fDocumentRewriteSession;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

@Override
public DocumentRewriteSession startRewriteSession(DocumentRewriteSessionType sessionType) {
  if (getActiveRewriteSession() != null)
    throw new IllegalStateException();
  fDocumentRewriteSession= new DocumentRewriteSession(sessionType);
  if (DEBUG)
    System.out.println("AbstractDocument: Starting rewrite session: " + fDocumentRewriteSession); //$NON-NLS-1$
  fireRewriteSessionChanged(new DocumentRewriteSessionEvent(this, fDocumentRewriteSession, DocumentRewriteSessionEvent.SESSION_START));
  startRewriteSessionOnPartitioners(fDocumentRewriteSession);
  ILineTracker tracker= getTracker();
  if (tracker instanceof ILineTrackerExtension) {
    ILineTrackerExtension extension= (ILineTrackerExtension) tracker;
    extension.startRewriteSession(fDocumentRewriteSession);
  }
  if (DocumentRewriteSessionType.SEQUENTIAL == sessionType)
    startSequentialRewrite(false);
  else if (DocumentRewriteSessionType.STRICTLY_SEQUENTIAL == sessionType)
    startSequentialRewrite(true);
  return fDocumentRewriteSession;
}
org.eclipse.jface.textILineTrackerExtensionstartRewriteSession

Javadoc

Tells the line tracker that a rewrite session started. A rewrite session is a sequence of replace operations that form a semantic unit. The line tracker is allowed to use that information for internal optimization.

Popular methods of ILineTrackerExtension

  • stopRewriteSession
    Tells the line tracker that the rewrite session has finished. This method is only called when startR

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • 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