Codota Logo
FastPartitioner.getPositions
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain FastPartitioner
private void myMethod () {
FastPartitioner f =
  • Codota IconString[] legalContentTypes;new FastPartitioner(new FastJavaPartitionScanner(), legalContentTypes)
  • Smart code suggestions by Codota
}
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.text.compat

/**
 * Returns the position in the partitoner's position category which is
 * close to the given offset. This is, the position has either an offset which
 * is the same as the given offset or an offset which is smaller than the given
 * offset. This method profits from the knowledge that a partitioning is
 * a ordered set of disjoint position.
 * <p>
 * May be extended or replaced by subclasses.
 * </p>
 * @param offset the offset for which to search the closest position
 * @return the closest position in the partitioner's category
 */
protected TypedPosition findClosestPosition(int offset) {
  try {
    int index= fDocument.computeIndexInCategory(fPositionCategory, offset);
    Position[] category= getPositions();
    if (category.length == 0)
      return null;
    if (index < category.length) {
      if (offset == category[index].offset)
        return (TypedPosition) category[index];
    }
    if (index > 0)
      index--;
    return (TypedPosition) category[index];
  } catch (BadPositionCategoryException x) {
  } catch (BadLocationException x) {
  }
  return null;
}
origin: at.bestsolution.eclipse/org.eclipse.fx.text.compat

/**
 * Returns the position in the partitoner's position category which is
 * close to the given offset. This is, the position has either an offset which
 * is the same as the given offset or an offset which is smaller than the given
 * offset. This method profits from the knowledge that a partitioning is
 * a ordered set of disjoint position.
 * <p>
 * May be extended or replaced by subclasses.
 * </p>
 * @param offset the offset for which to search the closest position
 * @return the closest position in the partitioner's category
 */
protected TypedPosition findClosestPosition(int offset) {
  try {
    int index= fDocument.computeIndexInCategory(fPositionCategory, offset);
    Position[] category= getPositions();
    if (category.length == 0)
      return null;
    if (index < category.length) {
      if (offset == category[index].offset)
        return (TypedPosition) category[index];
    }
    if (index > 0)
      index--;
    return (TypedPosition) category[index];
  } catch (BadPositionCategoryException x) {
  } catch (BadLocationException x) {
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Returns the position in the partitoner's position category which is
 * close to the given offset. This is, the position has either an offset which
 * is the same as the given offset or an offset which is smaller than the given
 * offset. This method profits from the knowledge that a partitioning is
 * a ordered set of disjoint position.
 * <p>
 * May be extended or replaced by subclasses.
 * </p>
 * @param offset the offset for which to search the closest position
 * @return the closest position in the partitioner's category
 */
protected TypedPosition findClosestPosition(int offset) {
  try {
    int index= fDocument.computeIndexInCategory(fPositionCategory, offset);
    Position[] category= getPositions();
    if (category.length == 0)
      return null;
    if (index < category.length) {
      if (offset == category[index].offset)
        return (TypedPosition) category[index];
    }
    if (index > 0)
      index--;
    return (TypedPosition) category[index];
  } catch (BadPositionCategoryException x) {
  } catch (BadLocationException x) {
  }
  return null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Returns the position in the partitoner's position category which is
 * close to the given offset. This is, the position has either an offset which
 * is the same as the given offset or an offset which is smaller than the given
 * offset. This method profits from the knowledge that a partitioning is
 * a ordered set of disjoint position.
 * <p>
 * May be extended or replaced by subclasses.
 * </p>
 * @param offset the offset for which to search the closest position
 * @return the closest position in the partitioner's category
 */
protected TypedPosition findClosestPosition(int offset) {
  try {
    int index= fDocument.computeIndexInCategory(fPositionCategory, offset);
    Position[] category= getPositions();
    if (category.length == 0)
      return null;
    if (index < category.length) {
      if (offset == category[index].offset)
        return (TypedPosition) category[index];
    }
    if (index > 0)
      index--;
    return (TypedPosition) category[index];
  } catch (BadPositionCategoryException x) {
  } catch (BadLocationException x) {
  }
  return null;
}
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.text.compat

Position[] category= getPositions();
origin: org.eclipse.platform/org.eclipse.jface.text

Position[] category= getPositions();
origin: at.bestsolution.eclipse/org.eclipse.fx.text.compat

Position[] category= getPositions();
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

Position[] category= getPositions();
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.text.compat

Assert.isTrue(e.getDocument() == fDocument);
Position[] category= getPositions();
IRegion line= fDocument.getLineInformationOfOffset(e.getOffset());
int reparseStart= line.getOffset();
category= getPositions();
category= getPositions();
TypedPosition p;
while (first < category.length) {
origin: org.eclipse.platform/org.eclipse.jface.text

Assert.isTrue(e.getDocument() == fDocument);
Position[] category= getPositions();
IRegion line= fDocument.getLineInformationOfOffset(e.getOffset());
int reparseStart= line.getOffset();
category= getPositions();
category= getPositions();
TypedPosition p;
while (first < category.length) {
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

Assert.isTrue(e.getDocument() == fDocument);
Position[] category= getPositions();
IRegion line= fDocument.getLineInformationOfOffset(e.getOffset());
int reparseStart= line.getOffset();
category= getPositions();
category= getPositions();
TypedPosition p;
while (first < category.length) {
origin: at.bestsolution.eclipse/org.eclipse.fx.text.compat

Assert.isTrue(e.getDocument() == fDocument);
Position[] category= getPositions();
IRegion line= fDocument.getLineInformationOfOffset(e.getOffset());
int reparseStart= line.getOffset();
category= getPositions();
category= getPositions();
TypedPosition p;
while (first < category.length) {
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.text.compat

Position[] category = getPositions();
origin: org.eclipse.platform/org.eclipse.jface.text

Position[] category = getPositions();
origin: at.bestsolution.eclipse/org.eclipse.fx.text.compat

Position[] category = getPositions();
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

Position[] category = getPositions();
org.eclipse.jface.text.rulesFastPartitionergetPositions

Javadoc

Returns the partitioners positions.

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,
  • getTokenContentType,
  • initialize,
  • isSupportedContentType,
  • overlapsOrTouches,
  • rememberDeletedOffset,
  • rememberRegion,
  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setContentView (Activity)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now