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

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

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

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

@Override
public void stopRewriteSession(DocumentRewriteSession session) {
  if (fDocumentRewriteSession != null && fDocumentRewriteSession == session) {
    if (DEBUG)
      System.out.println("AbstractDocument: Stopping rewrite session: " + session); //$NON-NLS-1$
    DocumentRewriteSessionType sessionType= session.getSessionType();
    if (DocumentRewriteSessionType.SEQUENTIAL == sessionType || DocumentRewriteSessionType.STRICTLY_SEQUENTIAL == sessionType)
      stopSequentialRewrite();
    ILineTracker tracker= getTracker();
    if (tracker instanceof ILineTrackerExtension) {
      ILineTrackerExtension extension= (ILineTrackerExtension) tracker;
      extension.stopRewriteSession(session, get());
    }
    stopRewriteSessionOnPartitioners(fDocumentRewriteSession);
    fDocumentRewriteSession= null;
    fireRewriteSessionChanged(new DocumentRewriteSessionEvent(this, session, DocumentRewriteSessionEvent.SESSION_STOP));
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

@Override
public void stopRewriteSession(DocumentRewriteSession session) {
  if (fDocumentRewriteSession == session) {
    if (DEBUG)
      System.out.println("AbstractDocument: Stopping rewrite session: " + session); //$NON-NLS-1$
    DocumentRewriteSessionType sessionType= session.getSessionType();
    if (DocumentRewriteSessionType.SEQUENTIAL == sessionType || DocumentRewriteSessionType.STRICTLY_SEQUENTIAL == sessionType)
      stopSequentialRewrite();
    ILineTracker tracker= getTracker();
    if (tracker instanceof ILineTrackerExtension) {
      ILineTrackerExtension extension= (ILineTrackerExtension) tracker;
      extension.stopRewriteSession(session, get());
    }
    stopRewriteSessionOnPartitioners(fDocumentRewriteSession);
    fDocumentRewriteSession= null;
    fireRewriteSessionChanged(new DocumentRewriteSessionEvent(this, session, DocumentRewriteSessionEvent.SESSION_STOP));
  }
}
org.eclipse.jface.textILineTrackerExtensionstopRewriteSession

Javadoc

Tells the line tracker that the rewrite session has finished. This method is only called when startRewriteSession has been called before. The text resulting from the rewrite session is passed to the line tracker.

Popular methods of ILineTrackerExtension

  • startRewriteSession
    Tells the line tracker that a rewrite session started. A rewrite session is a sequence of replace op

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top Sublime Text plugins
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