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

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

Best Java code snippets using org.eclipse.jface.text.ILineTrackerExtension (Showing top 4 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: 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));
  }
}
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.textILineTrackerExtension

Javadoc

Extension interface for org.eclipse.jface.text.ILineTracker. Adds the concept of rewrite sessions. A rewrite session is a sequence of replace operations that form a semantic unit.

Most used methods

  • startRewriteSession
    Tells the line tracker that a rewrite session started. A rewrite session is a sequence of replace op
  • stopRewriteSession
    Tells the line tracker that the rewrite session has finished. This method is only called when startR

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • 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