public class DocumentUtil extends 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 String |
preProcessSearchString(String string) |
org.eclipse.jface.text.IRegion |
searchBackwardsInSamePartition(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(String toFind,
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(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(String toFind,
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(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.BadLocationExceptionpublic org.eclipse.jface.text.IRegion searchBackwardsInSamePartition(String toFind, 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.BadLocationExceptionpublic org.eclipse.jface.text.IRegion searchInSamePartition(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.BadLocationExceptionpublic org.eclipse.jface.text.IRegion searchInSamePartition(String toFind, 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.BadLocationExceptionpublic boolean isSameLine(org.eclipse.jface.text.IDocument doc,
int offset,
int offset2)
throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionpublic int findNextOffSetInPartition(org.eclipse.jface.text.IDocument doc,
int partitionOffSet,
int minIndex)
throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionCopyright © 2016. All Rights Reserved.