Tabnine Logo
FastPartitioner.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.jface.text.rules.FastPartitioner
constructor

Best Java code snippets using org.eclipse.jface.text.rules.FastPartitioner.<init> (Showing top 20 results out of 315)

origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Factory method for creating a Java-specific document partitioner
 * using this object's partitions scanner. This method is a
 * convenience method.
 *
 * @return a newly created Java document partitioner
 */
public IDocumentPartitioner createDocumentPartitioner() {
  return new FastPartitioner(getPartitionScanner(), LEGAL_CONTENT_TYPES);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Factory method for creating a Java-specific document partitioner
 * using this object's partitions scanner. This method is a
 * convenience method.
 *
 * @return a newly created Java document partitioner
 */
public IDocumentPartitioner createDocumentPartitioner() {
  return new FastPartitioner(getPartitionScanner(), LEGAL_CONTENT_TYPES);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Factory method for creating a Java-specific document partitioner
 * using this object's partitions scanner. This method is a
 * convenience method.
 *
 * @return a newly created Java document partitioner
 */
public IDocumentPartitioner createDocumentPartitioner() {
  return new FastPartitioner(getPartitionScanner(), LEGAL_CONTENT_TYPES);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  /**
   * Factory method for creating a properties file document specific document
   * partitioner.
   *
   * @return a newly created properties file document partitioner
   */
  private static IDocumentPartitioner createDocumentPartitioner() {
    return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
  }
}
origin: org.eclipse.platform/org.eclipse.ant.ui

  private IDocumentPartitioner createDocumentPartitioner() {
    return new FastPartitioner(new AntEditorPartitionScanner(), new String[] { AntEditorPartitionScanner.XML_TAG,
        AntEditorPartitionScanner.XML_COMMENT, AntEditorPartitionScanner.XML_CDATA, AntEditorPartitionScanner.XML_DTD });
  }
}
origin: org.eclipse.platform/org.eclipse.ant.ui

  private IDocumentPartitioner createDocumentPartitioner() {
    return new FastPartitioner(new AntEditorPartitionScanner(), new String[] { AntEditorPartitionScanner.XML_TAG,
        AntEditorPartitionScanner.XML_COMMENT, AntEditorPartitionScanner.XML_CDATA, AntEditorPartitionScanner.XML_DTD });
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

  /**
   * Factory method for creating a properties file document specific document
   * partitioner.
   *
   * @return a newly created properties file document partitioner
   */
  private static IDocumentPartitioner createDocumentPartitioner() {
    return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  /**
   * Factory method for creating a properties file document specific document
   * partitioner.
   *
   * @return a newly created properties file document partitioner
   */
  private static IDocumentPartitioner createDocumentPartitioner() {
    return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new XMLPartitionScanner(), XMLPartitionScanner.PARTITIONS);
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new ManifestPartitionScanner(), ManifestPartitionScanner.PARTITIONS);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
}
origin: org.apache.directory.studio/ldifeditor

  /**
   * Creates the Document Partitioner
   *
   * @return
   *      the Document Partitioner
   */
  private IDocumentPartitioner createDocumentPartitioner()
  {
    IDocumentPartitioner partitioner = new FastPartitioner( new LdifPartitionScanner(), new String[]
      { LdifPartitionScanner.LDIF_RECORD } );
    return partitioner;
  }
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new ManifestPartitionScanner(), ManifestPartitionScanner.PARTITIONS);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
}
origin: org.eclipse/org.eclipse.jdt.ui

protected IDocumentPartitioner getDocumentPartitioner() {
  return new FastPartitioner(new PropertiesFilePartitionScanner(), IPropertiesFilePartitions.PARTITIONS);
}

origin: org.eclipse.pde/org.eclipse.pde.ui

private IDocumentPartitioner createDocumentPartitioner() {
  return new FastPartitioner(new ManifestPartitionScanner(), ManifestPartitionScanner.PARTITIONS);
}
origin: RepreZen/KaiZen-OpenAPI-Editor

@Override
protected IDocument createDocument(Object element) throws CoreException {
  IDocument document = super.createDocument(element);
  if (document != null) {
    JsonScanner scanner = new JsonScanner(new ColorManager(), store);
    Set<String> tokens = YAMLToken.VALID_TOKENS.keySet();
    FastPartitioner partitioner = new FastPartitioner(scanner, tokens.toArray(new String[tokens.size()]));
    document.setDocumentPartitioner(partitioner);
    partitioner.connect(document);
  }
  return document;
}
origin: org.apache.uima/ruta-ep-ide-ui

/**
 * Installs a partitioner with <code>document</code>.
 * 
 * @param document
 *          the document
 */
private static void installStuff(Document document) {
 String[] types = new String[] { RutaPartitions.RUTA_STRING, RutaPartitions.RUTA_COMMENT,
   IDocument.DEFAULT_CONTENT_TYPE };
 FastPartitioner partitioner = new FastPartitioner(new RutaPartitionScanner(), types);
 partitioner.connect(document);
 document.setDocumentPartitioner(RutaPartitions.RUTA_PARTITIONING, partitioner);
}
org.eclipse.jface.text.rulesFastPartitioner<init>

Javadoc

Creates a new partitioner that uses the given scanner and may return partitions of the given legal content types.

Popular methods of FastPartitioner

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • From CI to AI: The AI layer in your organization
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