Tabnine Logo
FastPartitioner.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.eclipse.jface.text.rules.FastPartitioner

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

origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Returns the partitioners positions.
 *
 * @return the partitioners positions
 * @throws BadPositionCategoryException if getting the positions from the
 *         document fails
 */
protected final Position[] getPositions() throws BadPositionCategoryException {
  if (fCachedPositions == null) {
    fCachedPositions= fDocument.getPositions(fPositionCategory);
  } else if (CHECK_CACHE_CONSISTENCY) {
    Position[] positions= fDocument.getPositions(fPositionCategory);
    int len= Math.min(positions.length, fCachedPositions.length);
    for (int i= 0; i < len; i++) {
      if (!positions[i].equals(fCachedPositions[i]))
        System.err.println("FastPartitioner.getPositions(): cached position is not up to date: from document: " + toString(positions[i]) + " in cache: " + toString(fCachedPositions[i])); //$NON-NLS-1$ //$NON-NLS-2$
    }
    for (int i= len; i < positions.length; i++)
      System.err.println("FastPartitioner.getPositions(): new position in document: " + toString(positions[i])); //$NON-NLS-1$
    for (int i= len; i < fCachedPositions.length; i++)
      System.err.println("FastPartitioner.getPositions(): stale position in cache: " + toString(fCachedPositions[i])); //$NON-NLS-1$
  }
  return fCachedPositions;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Returns the partitioners positions.
 *
 * @return the partitioners positions
 * @throws BadPositionCategoryException if getting the positions from the
 *         document fails
 */
protected final Position[] getPositions() throws BadPositionCategoryException {
  if (fCachedPositions == null) {
    fCachedPositions= fDocument.getPositions(fPositionCategory);
  } else if (CHECK_CACHE_CONSISTENCY) {
    Position[] positions= fDocument.getPositions(fPositionCategory);
    int len= Math.min(positions.length, fCachedPositions.length);
    for (int i= 0; i < len; i++) {
      if (!positions[i].equals(fCachedPositions[i]))
        System.err.println("FastPartitioner.getPositions(): cached position is not up to date: from document: " + toString(positions[i]) + " in cache: " + toString(fCachedPositions[i])); //$NON-NLS-1$ //$NON-NLS-2$
    }
    for (int i= len; i < positions.length; i++)
      System.err.println("FastPartitioner.getPositions(): new position in document: " + toString(positions[i])); //$NON-NLS-1$
    for (int i= len; i < fCachedPositions.length; i++)
      System.err.println("FastPartitioner.getPositions(): stale position in cache: " + toString(fCachedPositions[i])); //$NON-NLS-1$
  }
  return fCachedPositions;
}
org.eclipse.jface.text.rulesFastPartitionertoString

Javadoc

Pretty print a Position.

Popular methods of FastPartitioner

  • <init>
    Creates a new partitioner that uses the given scanner and may return partitions of the given legal c
  • connect
    May be extended by subclasses.
  • flushRewriteSession
    Flushes the active rewrite session.
  • checkInitialization
    Calls #initialize() if the receiver is not yet initialized.
  • clearPositionCache
    Clears the position cache. Needs to be called whenever the positions have been updated.
  • computePartitioning
    May be replaced or extended by subclasses.
  • createRegion
    Creates the minimal region containing all partition changes using the remembered offset, end offset,
  • documentChanged2
    May be extended by subclasses.
  • findClosestPosition
    Returns the position in the partitoner's position category which is close to the given offset. This
  • getFirstIndexEndingAfterOffset
    Returns the index of the first position which ends after the given offset.
  • getFirstIndexStartingAfterOffset
    Returns the index of the first position which starts at or after the given offset.
  • getPartition
    May be replaced or extended by subclasses.
  • getFirstIndexStartingAfterOffset,
  • getPartition,
  • getPositions,
  • getTokenContentType,
  • initialize,
  • isSupportedContentType,
  • overlapsOrTouches,
  • rememberDeletedOffset,
  • rememberRegion

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 12 Jupyter Notebook extensions
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