public class DocumentUtil
extends java.lang.Object
Constructor and Description |
---|
DocumentUtil() |
Modifier and Type | Method and Description |
---|---|
int |
findNextOffSetInPartition(org.eclipse.jface.text.IDocument doc,
int partitionOffSet,
int minIndex) |
boolean |
isSameLine(org.eclipse.jface.text.IDocument doc,
int offset,
int offset2) |
protected java.lang.String |
preProcessSearchString(java.lang.String string) |
org.eclipse.jface.text.IRegion |
searchBackwardsInSamePartition(java.lang.String toFind,
org.eclipse.jface.text.IDocument document,
int endOffset)
searches backwards for the given string within the same partition type
|
org.eclipse.jface.text.IRegion |
searchBackwardsInSamePartition(java.lang.String toFind,
java.lang.String documentText,
org.eclipse.jface.text.IDocument document,
int endOffset)
searches backwards for the given string within the same partition type
|
org.eclipse.jface.text.IRegion |
searchInSamePartition(java.lang.String toFind,
org.eclipse.jface.text.IDocument document,
int startOffset)
searches for the given string within the same partition type
|
org.eclipse.jface.text.IRegion |
searchInSamePartition(java.lang.String toFind,
java.lang.String documentText,
org.eclipse.jface.text.IDocument document,
int startOffset)
searches for the given string within the same partition type
|
public org.eclipse.jface.text.IRegion searchBackwardsInSamePartition(java.lang.String toFind, org.eclipse.jface.text.IDocument document, int endOffset) throws org.eclipse.jface.text.BadLocationException
null
if no match were foundorg.eclipse.jface.text.BadLocationException
public org.eclipse.jface.text.IRegion searchBackwardsInSamePartition(java.lang.String toFind, java.lang.String documentText, org.eclipse.jface.text.IDocument document, int endOffset) throws org.eclipse.jface.text.BadLocationException
null
if no match were foundorg.eclipse.jface.text.BadLocationException
protected java.lang.String preProcessSearchString(java.lang.String string)
public org.eclipse.jface.text.IRegion searchInSamePartition(java.lang.String toFind, org.eclipse.jface.text.IDocument document, int startOffset) throws org.eclipse.jface.text.BadLocationException
null
if no match were foundorg.eclipse.jface.text.BadLocationException
public org.eclipse.jface.text.IRegion searchInSamePartition(java.lang.String toFind, java.lang.String documentText, org.eclipse.jface.text.IDocument document, int startOffset) throws org.eclipse.jface.text.BadLocationException
null
if no match were foundorg.eclipse.jface.text.BadLocationException
public boolean isSameLine(org.eclipse.jface.text.IDocument doc, int offset, int offset2) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
public int findNextOffSetInPartition(org.eclipse.jface.text.IDocument doc, int partitionOffSet, int minIndex) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException