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

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

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

origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.text.compat

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
public String getContentType(int offset, boolean preferOpenPartitions) {
  return getPartition(offset, preferOpenPartitions).getType();
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
@Override
public String getContentType(int offset, boolean preferOpenPartitions) {
  return getPartition(offset, preferOpenPartitions).getType();
}
origin: at.bestsolution.eclipse/org.eclipse.fx.text.compat

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
public String getContentType(int offset, boolean preferOpenPartitions) {
  return getPartition(offset, preferOpenPartitions).getType();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
@Override
public String getContentType(int offset, boolean preferOpenPartitions) {
  return getPartition(offset, preferOpenPartitions).getType();
}
origin: at.bestsolution.eclipse/org.eclipse.fx.text.compat

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
public ITypedRegion getPartition(int offset, boolean preferOpenPartitions) {
  ITypedRegion region= getPartition(offset);
  if (preferOpenPartitions) {
    if (region.getOffset() == offset && !region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE)) {
      if (offset > 0) {
        region= getPartition(offset - 1);
        if (region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))
          return region;
      }
      return new TypedRegion(offset, 0, IDocument.DEFAULT_CONTENT_TYPE);
    }
  }
  return region;
}
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.text.compat

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
public ITypedRegion getPartition(int offset, boolean preferOpenPartitions) {
  ITypedRegion region= getPartition(offset);
  if (preferOpenPartitions) {
    if (region.getOffset() == offset && !region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE)) {
      if (offset > 0) {
        region= getPartition(offset - 1);
        if (region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))
          return region;
      }
      return new TypedRegion(offset, 0, IDocument.DEFAULT_CONTENT_TYPE);
    }
  }
  return region;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
@Override
public ITypedRegion getPartition(int offset, boolean preferOpenPartitions) {
  ITypedRegion region= getPartition(offset);
  if (preferOpenPartitions) {
    if (region.getOffset() == offset && !region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE)) {
      if (offset > 0) {
        region= getPartition(offset - 1);
        if (region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))
          return region;
      }
      return new TypedRegion(offset, 0, IDocument.DEFAULT_CONTENT_TYPE);
    }
  }
  return region;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * {@inheritDoc}
 * <p>
 * May be replaced or extended by subclasses.
 * </p>
 */
@Override
public ITypedRegion getPartition(int offset, boolean preferOpenPartitions) {
  ITypedRegion region= getPartition(offset);
  if (preferOpenPartitions) {
    if (region.getOffset() == offset && !region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE)) {
      if (offset > 0) {
        region= getPartition(offset - 1);
        if (region.getType().equals(IDocument.DEFAULT_CONTENT_TYPE))
          return region;
      }
      return new TypedRegion(offset, 0, IDocument.DEFAULT_CONTENT_TYPE);
    }
  }
  return region;
}
org.eclipse.jface.text.rulesFastPartitionergetPartition

Javadoc

May be replaced or extended by subclasses.

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.
  • getPositions
    Returns the partitioners positions.
  • getFirstIndexStartingAfterOffset,
  • getPositions,
  • getTokenContentType,
  • initialize,
  • isSupportedContentType,
  • overlapsOrTouches,
  • rememberDeletedOffset,
  • rememberRegion,
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top Vim 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