com.aptana.ide.editors.unified
Class UnifiedDocumentPartitioner

java.lang.Object
  extended by com.aptana.ide.editors.unified.UnifiedDocumentPartitioner
All Implemented Interfaces:
org.eclipse.jface.text.IDocumentPartitioner, org.eclipse.jface.text.IDocumentPartitionerExtension, org.eclipse.jface.text.IDocumentPartitionerExtension2, org.eclipse.jface.text.IDocumentPartitionerExtension3

public class UnifiedDocumentPartitioner
extends java.lang.Object
implements org.eclipse.jface.text.IDocumentPartitioner, org.eclipse.jface.text.IDocumentPartitionerExtension, org.eclipse.jface.text.IDocumentPartitionerExtension2, org.eclipse.jface.text.IDocumentPartitionerExtension3


Constructor Summary
UnifiedDocumentPartitioner(java.lang.String sourceURI)
          UnifiedDocumentPartitioner
 
Method Summary
 org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset, int length)
           
 org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset, int length, boolean includeZeroLengthPartitions)
          Computes the partitions encapsulated by the current selected text
 void connect(org.eclipse.jface.text.IDocument document)
           
 void connect(org.eclipse.jface.text.IDocument document, boolean delayInitialization)
           
 void disconnect()
           
 void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
           
 boolean documentChanged(org.eclipse.jface.text.DocumentEvent event)
           
 org.eclipse.jface.text.IRegion documentChanged2(org.eclipse.jface.text.DocumentEvent event)
           
 org.eclipse.jface.text.DocumentRewriteSession getActiveRewriteSession()
           
 java.lang.String getContentType(int offset)
           
 java.lang.String getContentType(int offset, boolean preferOpenPartitions)
           
 java.lang.String[] getLegalContentTypes()
           
 java.lang.String[] getManagingPositionCategories()
           
 org.eclipse.jface.text.ITypedRegion getPartition(int offset)
           
 org.eclipse.jface.text.ITypedRegion getPartition(int offset, boolean preferOpenPartitions)
           
 void setLegalContentTypes(java.lang.String[] partitions)
           
 void setPartitions()
          setPartitions
 void startRewriteSession(org.eclipse.jface.text.DocumentRewriteSession session)
           
 void stopRewriteSession(org.eclipse.jface.text.DocumentRewriteSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnifiedDocumentPartitioner

public UnifiedDocumentPartitioner(java.lang.String sourceURI)
UnifiedDocumentPartitioner

Parameters:
sourceURI -
Method Detail

connect

public void connect(org.eclipse.jface.text.IDocument document)
Specified by:
connect in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.connect(org.eclipse.jface.text.IDocument)

connect

public void connect(org.eclipse.jface.text.IDocument document,
                    boolean delayInitialization)
Specified by:
connect in interface org.eclipse.jface.text.IDocumentPartitionerExtension3
See Also:
IDocumentPartitionerExtension3.connect(org.eclipse.jface.text.IDocument, boolean)

setPartitions

public void setPartitions()
setPartitions


disconnect

public void disconnect()
Specified by:
disconnect in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.disconnect()

documentAboutToBeChanged

public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
Specified by:
documentAboutToBeChanged in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent)

documentChanged

public boolean documentChanged(org.eclipse.jface.text.DocumentEvent event)
Specified by:
documentChanged in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.documentChanged(org.eclipse.jface.text.DocumentEvent)

getLegalContentTypes

public java.lang.String[] getLegalContentTypes()
Specified by:
getLegalContentTypes in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.getLegalContentTypes()

setLegalContentTypes

public void setLegalContentTypes(java.lang.String[] partitions)
Parameters:
partitions - The _legalPartitions to set.

getContentType

public java.lang.String getContentType(int offset)
Specified by:
getContentType in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.getContentType(int)

computePartitioning

public org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset,
                                                                 int length)
Specified by:
computePartitioning in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.computePartitioning(int, int)

getPartition

public org.eclipse.jface.text.ITypedRegion getPartition(int offset)
Specified by:
getPartition in interface org.eclipse.jface.text.IDocumentPartitioner
See Also:
IDocumentPartitioner.getPartition(int)

documentChanged2

public org.eclipse.jface.text.IRegion documentChanged2(org.eclipse.jface.text.DocumentEvent event)
Specified by:
documentChanged2 in interface org.eclipse.jface.text.IDocumentPartitionerExtension
See Also:
IDocumentPartitionerExtension.documentChanged2(org.eclipse.jface.text.DocumentEvent)

getManagingPositionCategories

public java.lang.String[] getManagingPositionCategories()
Specified by:
getManagingPositionCategories in interface org.eclipse.jface.text.IDocumentPartitionerExtension2
See Also:
IDocumentPartitionerExtension2.getManagingPositionCategories()

getContentType

public java.lang.String getContentType(int offset,
                                       boolean preferOpenPartitions)
Specified by:
getContentType in interface org.eclipse.jface.text.IDocumentPartitionerExtension2
See Also:
IDocumentPartitionerExtension2.getContentType(int, boolean)

getPartition

public org.eclipse.jface.text.ITypedRegion getPartition(int offset,
                                                        boolean preferOpenPartitions)
Specified by:
getPartition in interface org.eclipse.jface.text.IDocumentPartitionerExtension2
See Also:
IDocumentPartitionerExtension2.getPartition(int, boolean)

computePartitioning

public org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset,
                                                                 int length,
                                                                 boolean includeZeroLengthPartitions)
Computes the partitions encapsulated by the current selected text

Specified by:
computePartitioning in interface org.eclipse.jface.text.IDocumentPartitionerExtension2
Parameters:
offset - The starting offset of the text selection
length - The length of the text selection
includeZeroLengthPartitions - Include partitions of zero length?
Returns:
An array of the partitions

startRewriteSession

public void startRewriteSession(org.eclipse.jface.text.DocumentRewriteSession session)
                         throws java.lang.IllegalStateException
Specified by:
startRewriteSession in interface org.eclipse.jface.text.IDocumentPartitionerExtension3
Throws:
java.lang.IllegalStateException
See Also:
IDocumentPartitionerExtension3.startRewriteSession(org.eclipse.jface.text.DocumentRewriteSession)

stopRewriteSession

public void stopRewriteSession(org.eclipse.jface.text.DocumentRewriteSession session)
Specified by:
stopRewriteSession in interface org.eclipse.jface.text.IDocumentPartitionerExtension3
See Also:
IDocumentPartitionerExtension3.stopRewriteSession(org.eclipse.jface.text.DocumentRewriteSession)

getActiveRewriteSession

public org.eclipse.jface.text.DocumentRewriteSession getActiveRewriteSession()
Specified by:
getActiveRewriteSession in interface org.eclipse.jface.text.IDocumentPartitionerExtension3
See Also:
IDocumentPartitionerExtension3.getActiveRewriteSession()