Tabnine Logo
IDocumentPartitioningListenerExtension.documentPartitioningChanged
Code IndexAdd Tabnine to your IDE (free)

How to use
documentPartitioningChanged
method
in
org.eclipse.jface.text.IDocumentPartitioningListenerExtension

Best Java code snippets using org.eclipse.jface.text.IDocumentPartitioningListenerExtension.documentPartitioningChanged (Showing top 4 results out of 315)

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

/**
 * Fires the document partitioning changed notification to all registered
 * document partitioning listeners. Uses a robust iterator.
 *
 * @param region the region in which partitioning has changed
 *
 * @see IDocumentPartitioningListenerExtension
 * @since 2.0
 * @deprecated as of 3.0. Use
 *             <code>fireDocumentPartitioningChanged(DocumentPartitioningChangedEvent)</code>
 *             instead.
 */
@Deprecated
protected void fireDocumentPartitioningChanged(IRegion region) {
  if (fDocumentPartitioningListeners == null)
    return;
  for (IDocumentPartitioningListener l : fDocumentPartitioningListeners) {
    try {
      if (l instanceof IDocumentPartitioningListenerExtension)
        ((IDocumentPartitioningListenerExtension)l).documentPartitioningChanged(this, region);
      else
        l.documentPartitioningChanged(this);
    } catch (Exception ex) {
      log(ex);
    }
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

/**
 * Fires the document partitioning changed notification to all registered
 * document partitioning listeners. Uses a robust iterator.
 *
 * @param region the region in which partitioning has changed
 *
 * @see IDocumentPartitioningListenerExtension
 * @since 2.0
 * @deprecated as of 3.0. Use
 *             <code>fireDocumentPartitioningChanged(DocumentPartitioningChangedEvent)</code>
 *             instead.
 */
@Deprecated
protected void fireDocumentPartitioningChanged(IRegion region) {
  if (fDocumentPartitioningListeners == null)
    return;
  for (IDocumentPartitioningListener l : fDocumentPartitioningListeners) {
    try {
      if (l instanceof IDocumentPartitioningListenerExtension)
        ((IDocumentPartitioningListenerExtension)l).documentPartitioningChanged(this, region);
      else
        l.documentPartitioningChanged(this);
    } catch (Exception ex) {
      log(ex);
    }
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

/**
 * Fires the document partitioning changed notification to all registered
 * document partitioning listeners. Uses a robust iterator.
 *
 * @param event the document partitioning changed event
 *
 * @see IDocumentPartitioningListenerExtension2
 * @since 3.0
 */
protected void fireDocumentPartitioningChanged(DocumentPartitioningChangedEvent event) {
  if (fDocumentPartitioningListeners == null)
    return;
  for (IDocumentPartitioningListener l : fDocumentPartitioningListeners) {
    try {
      if (l instanceof IDocumentPartitioningListenerExtension2) {
        IDocumentPartitioningListenerExtension2 extension2= (IDocumentPartitioningListenerExtension2)l;
        extension2.documentPartitioningChanged(event);
      } else if (l instanceof IDocumentPartitioningListenerExtension) {
        IDocumentPartitioningListenerExtension extension= (IDocumentPartitioningListenerExtension)l;
        extension.documentPartitioningChanged(this, event.getCoverage());
      } else {
        l.documentPartitioningChanged(this);
      }
    } catch (Exception ex) {
      log(ex);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.text

/**
 * Fires the document partitioning changed notification to all registered
 * document partitioning listeners. Uses a robust iterator.
 *
 * @param event the document partitioning changed event
 *
 * @see IDocumentPartitioningListenerExtension2
 * @since 3.0
 */
protected void fireDocumentPartitioningChanged(DocumentPartitioningChangedEvent event) {
  if (fDocumentPartitioningListeners == null)
    return;
  for (IDocumentPartitioningListener l : fDocumentPartitioningListeners) {
    try {
      if (l instanceof IDocumentPartitioningListenerExtension2) {
        IDocumentPartitioningListenerExtension2 extension2= (IDocumentPartitioningListenerExtension2)l;
        extension2.documentPartitioningChanged(event);
      } else if (l instanceof IDocumentPartitioningListenerExtension) {
        IDocumentPartitioningListenerExtension extension= (IDocumentPartitioningListenerExtension)l;
        extension.documentPartitioningChanged(this, event.getCoverage());
      } else {
        l.documentPartitioningChanged(this);
      }
    } catch (Exception ex) {
      log(ex);
    }
  }
}
org.eclipse.jface.textIDocumentPartitioningListenerExtensiondocumentPartitioningChanged

Javadoc

The partitioning of the given document changed in the given region.

In version 3.0, this method has been replaced with IDocumentPartitioningListenerExtension2#documentPartitioningChanged(DocumentPartitioningChangedEvent).

Popular methods of IDocumentPartitioningListenerExtension

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getContentResolver (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • List (java.util)
      An ordered collection (also known as a sequence). The user of this interface has precise control ove
    • ExecutorService (java.util.concurrent)
      An Executor that provides methods to manage termination and methods that can produce a Future for tr
    • JComboBox (javax.swing)
    • Top plugins for Android Studio
    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