Eclipse Platform
Release 3.1

Uses of Interface
org.eclipse.jface.text.ITypedRegion

Packages that use ITypedRegion
org.eclipse.jface.text Provides a framework for creating and manipulating text documents. 
org.eclipse.jface.text.presentation Provides a presentation reconciler add-on for an ITextViewer.  
org.eclipse.jface.text.reconciler Provides a reconciler add-on for an ITextViewer.  
org.eclipse.jface.text.rules Provides a framework for rule based text scanning and uses the framework to provide rule-driven default implementations of IPresentationDamager, IPresentationRepairer and IDocumentPartitioner.  
 

Uses of ITypedRegion in org.eclipse.jface.text
 

Classes in org.eclipse.jface.text that implement ITypedRegion
 class TypedRegion
          Default implementation of ITypedRegion.
 

Methods in org.eclipse.jface.text that return ITypedRegion
static ITypedRegion TextUtilities.getPartition(IDocument document, String partitioning, int offset, boolean preferOpenPartitions)
          Returns the partition of the given offset of the given document.
static ITypedRegion[] TextUtilities.computePartitioning(IDocument document, String partitioning, int offset, int length, boolean includeZeroLengthPartitions)
          Computes and returns the partitioning for the given region of the given document for the given partitioning name.
 ITypedRegion IDocumentPartitionerExtension2.getPartition(int offset, boolean preferOpenPartitions)
          Returns the partition containing the given offset of the connected document.
 ITypedRegion[] IDocumentPartitionerExtension2.computePartitioning(int offset, int length, boolean includeZeroLengthPartitions)
          Returns the partitioning of the given range of the connected document.
 ITypedRegion[] IDocumentPartitioner.computePartitioning(int offset, int length)
          Returns the partitioning of the given range of the connected document.
 ITypedRegion IDocumentPartitioner.getPartition(int offset)
          Returns the partition containing the given offset of the connected document.
 ITypedRegion IDocumentExtension3.getPartition(String partitioning, int offset, boolean preferOpenPartitions)
          Returns the document partition of the given partitioning in which the given offset is located.
 ITypedRegion[] IDocumentExtension3.computePartitioning(String partitioning, int offset, int length, boolean includeZeroLengthPartitions)
          Computes the partitioning of the given document range based on the given partitioning type.
 ITypedRegion IDocument.getPartition(int offset)
          Returns the document partition in which the position is located.
 ITypedRegion[] IDocument.computePartitioning(int offset, int length)
          Computes the partitioning of the given document range using the document's partitioner.
 ITypedRegion AbstractDocument.getPartition(int offset)
           
 ITypedRegion[] AbstractDocument.computePartitioning(int offset, int length)
           
 ITypedRegion[] AbstractDocument.computePartitioning(String partitioning, int offset, int length, boolean includeZeroLengthPartitions)
           
 ITypedRegion AbstractDocument.getPartition(String partitioning, int offset, boolean preferOpenPartitions)
           
 

Constructors in org.eclipse.jface.text with parameters of type ITypedRegion
TypedPosition(ITypedRegion region)
          Creates a position based on the typed region.
 

Uses of ITypedRegion in org.eclipse.jface.text.presentation
 

Methods in org.eclipse.jface.text.presentation with parameters of type ITypedRegion
 void IPresentationRepairer.createPresentation(TextPresentation presentation, ITypedRegion damage)
          Fills the given presentation with the style ranges which when applied to the presentation reconciler's text viewer repair the presentation damage described by the given region.
 IRegion IPresentationDamager.getDamageRegion(ITypedRegion partition, DocumentEvent event, boolean documentPartitioningChanged)
          Returns the damage in the document's presentation caused by the given document change.
 

Uses of ITypedRegion in org.eclipse.jface.text.reconciler
 

Classes in org.eclipse.jface.text.reconciler that implement ITypedRegion
 class DirtyRegion
          A dirty region describes a document range which has been changed.
 

Uses of ITypedRegion in org.eclipse.jface.text.rules
 

Methods in org.eclipse.jface.text.rules that return ITypedRegion
 ITypedRegion RuleBasedPartitioner.getPartition(int offset)
          Deprecated.  
 ITypedRegion[] RuleBasedPartitioner.computePartitioning(int offset, int length)
          Deprecated.  
 ITypedRegion RuleBasedPartitioner.getPartition(int offset, boolean preferOpenPartitions)
          Deprecated.  
 ITypedRegion[] RuleBasedPartitioner.computePartitioning(int offset, int length, boolean includeZeroLengthPartitions)
          Deprecated.  
 ITypedRegion FastPartitioner.getPartition(int offset)
          Returns the partition containing the given offset of the connected document. There must be a document connected to this partitioner.

Use IDocumentPartitionerExtension2.getPartition(int, boolean) when zero-length partitions are supported. In that case this method is equivalent:

    IDocumentPartitionerExtension2 extension= (IDocumentPartitionerExtension2) partitioner;
    return extension.getPartition(offset, false);
 
May be replaced or extended by subclasses.
 ITypedRegion[] FastPartitioner.computePartitioning(int offset, int length)
           
 ITypedRegion FastPartitioner.getPartition(int offset, boolean preferOpenPartitions)
          Returns the partition containing the given offset of the connected document. There must be a document connected to this partitioner.

If preferOpenPartitions is true, precedence is given to an open partition ending at offset over a delimited partition starting at offset.

This method replaces IDocumentPartitioner.getPartition(int)and behaves like it when is false , i.e. precedence is always given to the partition that does not end at offset.

May be replaced or extended by subclasses.
 ITypedRegion[] FastPartitioner.computePartitioning(int offset, int length, boolean includeZeroLengthPartitions)
          Returns the partitioning of the given range of the connected document. There must be a document connected to this partitioner.

If includeZeroLengthPartitions is true, a zero-length partition of an open partition type (usually the default partition) is included between two delimited partitions. If it is false, no zero-length partitions are included.

This method replaces IDocumentPartitioner.computePartitioning(int, int)and behaves like it when includeZeroLengthPartitions is false.

May be replaced or extended by subclasses.
 ITypedRegion DefaultPartitioner.getPartition(int offset)
          Deprecated.  
 ITypedRegion[] DefaultPartitioner.computePartitioning(int offset, int length)
          Deprecated.  
 ITypedRegion DefaultPartitioner.getPartition(int offset, boolean preferOpenPartitions)
          Deprecated.  
 ITypedRegion[] DefaultPartitioner.computePartitioning(int offset, int length, boolean includeZeroLengthPartitions)
          Deprecated.  
 

Methods in org.eclipse.jface.text.rules with parameters of type ITypedRegion
 IRegion DefaultDamagerRepairer.getDamageRegion(ITypedRegion partition, DocumentEvent e, boolean documentPartitioningChanged)
           
 void DefaultDamagerRepairer.createPresentation(TextPresentation presentation, ITypedRegion region)
           
 


Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.