congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
IDocumentRewriteSessionListener
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

/**
 * Fires the given event to all registered rewrite session listeners. Uses robust iterators.
 *
 * @param event the event to be fired
 * @since 3.1
 */
protected void fireRewriteSessionChanged(DocumentRewriteSessionEvent event) {
  if (fDocumentRewriteSessionListeners.size() > 0) {
    List<IDocumentRewriteSessionListener> list= new ArrayList<>(fDocumentRewriteSessionListeners);
    Iterator<IDocumentRewriteSessionListener> e= list.iterator();
    while (e.hasNext()) {
      try {
        IDocumentRewriteSessionListener l= e.next();
        l.documentRewriteSessionChanged(event);
      } catch (Exception ex) {
        log(ex);
      }
    }
  }
}
origin: org.eclipse.platform/org.eclipse.text

/**
 * Fires the given event to all registered rewrite session listeners. Uses robust iterators.
 *
 * @param event the event to be fired
 * @since 3.1
 */
protected void fireRewriteSessionChanged(DocumentRewriteSessionEvent event) {
  if (fDocumentRewriteSessionListeners.size() > 0) {
    List<IDocumentRewriteSessionListener> list= new ArrayList<>(fDocumentRewriteSessionListeners);
    Iterator<IDocumentRewriteSessionListener> e= list.iterator();
    while (e.hasNext()) {
      try {
        IDocumentRewriteSessionListener l= e.next();
        l.documentRewriteSessionChanged(event);
      } catch (Exception ex) {
        log(ex);
      }
    }
  }
}
org.eclipse.jface.textIDocumentRewriteSessionListener

Javadoc

Interface for objects which are interested in getting informed about document rewrite sessions.

Clients may implement this interface.

Most used methods

  • documentRewriteSessionChanged
    Signals a change in a document's rewrite session state.

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • Kernel (java.awt.image)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JOptionPane (javax.swing)
  • 21 Best IntelliJ 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