org.eclipse.mat.ui.snapshot.panes.oql.textPartitioning
Class PatchedFastPartitioner

java.lang.Object
  extended by FastPartitioner
      extended by org.eclipse.mat.ui.snapshot.panes.oql.textPartitioning.PatchedFastPartitioner

public class PatchedFastPartitioner
extends FastPartitioner

Overrides the getPartition to correctly support the case in which provided offset is the position after the last character of the document as ContentAssistant asks.


Constructor Summary
PatchedFastPartitioner(IPartitionTokenScanner scanner, java.lang.String[] legalContentTypes)
           
 
Method Summary
 ITypedRegion getPartition(int offset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchedFastPartitioner

public PatchedFastPartitioner(IPartitionTokenScanner scanner,
                              java.lang.String[] legalContentTypes)
Method Detail

getPartition

public ITypedRegion getPartition(int offset)