public class DummyDocument
extends java.lang.Object
implements org.eclipse.jface.text.IDocument
Constructor and Description |
---|
DummyDocument(java.lang.String content) |
Modifier and Type | Method and Description |
---|---|
void |
addDocumentListener(org.eclipse.jface.text.IDocumentListener listener) |
void |
addDocumentPartitioningListener(org.eclipse.jface.text.IDocumentPartitioningListener listener) |
void |
addPosition(org.eclipse.jface.text.Position position) |
void |
addPosition(java.lang.String category,
org.eclipse.jface.text.Position position) |
void |
addPositionCategory(java.lang.String category) |
void |
addPositionUpdater(org.eclipse.jface.text.IPositionUpdater updater) |
void |
addPrenotifiedDocumentListener(org.eclipse.jface.text.IDocumentListener documentAdapter) |
int |
computeIndexInCategory(java.lang.String category,
int offset) |
int |
computeNumberOfLines(java.lang.String text) |
org.eclipse.jface.text.ITypedRegion[] |
computePartitioning(int offset,
int length) |
boolean |
containsPosition(java.lang.String category,
int offset,
int length) |
boolean |
containsPositionCategory(java.lang.String category) |
java.lang.String |
get() |
java.lang.String |
get(int offset,
int length) |
char |
getChar(int offset) |
java.lang.String |
getContentType(int offset) |
org.eclipse.jface.text.IDocumentPartitioner |
getDocumentPartitioner() |
java.lang.String[] |
getLegalContentTypes() |
java.lang.String[] |
getLegalLineDelimiters() |
int |
getLength() |
java.lang.String |
getLineDelimiter(int line) |
org.eclipse.jface.text.IRegion |
getLineInformation(int line) |
org.eclipse.jface.text.IRegion |
getLineInformationOfOffset(int offset) |
int |
getLineLength(int line) |
int |
getLineOffset(int line) |
int |
getLineOfOffset(int offset) |
int |
getNumberOfLines() |
int |
getNumberOfLines(int offset,
int length) |
org.eclipse.jface.text.ITypedRegion |
getPartition(int offset) |
java.lang.String[] |
getPositionCategories() |
org.eclipse.jface.text.Position[] |
getPositions(java.lang.String category) |
org.eclipse.jface.text.IPositionUpdater[] |
getPositionUpdaters() |
void |
insertPositionUpdater(org.eclipse.jface.text.IPositionUpdater updater,
int index) |
void |
removeDocumentListener(org.eclipse.jface.text.IDocumentListener listener) |
void |
removeDocumentPartitioningListener(org.eclipse.jface.text.IDocumentPartitioningListener listener) |
void |
removePosition(org.eclipse.jface.text.Position position) |
void |
removePosition(java.lang.String category,
org.eclipse.jface.text.Position position) |
void |
removePositionCategory(java.lang.String category) |
void |
removePositionUpdater(org.eclipse.jface.text.IPositionUpdater updater) |
void |
removePrenotifiedDocumentListener(org.eclipse.jface.text.IDocumentListener documentAdapter) |
void |
replace(int offset,
int length,
java.lang.String text) |
int |
search(int startOffset,
java.lang.String findString,
boolean forwardSearch,
boolean caseSensitive,
boolean wholeWord)
Deprecated.
|
void |
set(java.lang.String text) |
void |
setDocumentPartitioner(org.eclipse.jface.text.IDocumentPartitioner partitioner) |
public char getChar(int offset) throws org.eclipse.jface.text.BadLocationException
getChar
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public int getLength()
getLength
in interface org.eclipse.jface.text.IDocument
public java.lang.String get()
get
in interface org.eclipse.jface.text.IDocument
public java.lang.String get(int offset, int length) throws org.eclipse.jface.text.BadLocationException
get
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public void set(java.lang.String text)
set
in interface org.eclipse.jface.text.IDocument
public void replace(int offset, int length, java.lang.String text) throws org.eclipse.jface.text.BadLocationException
replace
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public void addDocumentListener(org.eclipse.jface.text.IDocumentListener listener)
addDocumentListener
in interface org.eclipse.jface.text.IDocument
public void removeDocumentListener(org.eclipse.jface.text.IDocumentListener listener)
removeDocumentListener
in interface org.eclipse.jface.text.IDocument
public void addPrenotifiedDocumentListener(org.eclipse.jface.text.IDocumentListener documentAdapter)
addPrenotifiedDocumentListener
in interface org.eclipse.jface.text.IDocument
public void removePrenotifiedDocumentListener(org.eclipse.jface.text.IDocumentListener documentAdapter)
removePrenotifiedDocumentListener
in interface org.eclipse.jface.text.IDocument
public void addPositionCategory(java.lang.String category)
addPositionCategory
in interface org.eclipse.jface.text.IDocument
public void removePositionCategory(java.lang.String category) throws org.eclipse.jface.text.BadPositionCategoryException
removePositionCategory
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadPositionCategoryException
public java.lang.String[] getPositionCategories()
getPositionCategories
in interface org.eclipse.jface.text.IDocument
public boolean containsPositionCategory(java.lang.String category)
containsPositionCategory
in interface org.eclipse.jface.text.IDocument
public void addPosition(org.eclipse.jface.text.Position position) throws org.eclipse.jface.text.BadLocationException
addPosition
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public void removePosition(org.eclipse.jface.text.Position position)
removePosition
in interface org.eclipse.jface.text.IDocument
public void addPosition(java.lang.String category, org.eclipse.jface.text.Position position) throws org.eclipse.jface.text.BadLocationException, org.eclipse.jface.text.BadPositionCategoryException
addPosition
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadPositionCategoryException
public void removePosition(java.lang.String category, org.eclipse.jface.text.Position position) throws org.eclipse.jface.text.BadPositionCategoryException
removePosition
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadPositionCategoryException
public org.eclipse.jface.text.Position[] getPositions(java.lang.String category) throws org.eclipse.jface.text.BadPositionCategoryException
getPositions
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadPositionCategoryException
public boolean containsPosition(java.lang.String category, int offset, int length)
containsPosition
in interface org.eclipse.jface.text.IDocument
public int computeIndexInCategory(java.lang.String category, int offset) throws org.eclipse.jface.text.BadLocationException, org.eclipse.jface.text.BadPositionCategoryException
computeIndexInCategory
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadPositionCategoryException
public void addPositionUpdater(org.eclipse.jface.text.IPositionUpdater updater)
addPositionUpdater
in interface org.eclipse.jface.text.IDocument
public void removePositionUpdater(org.eclipse.jface.text.IPositionUpdater updater)
removePositionUpdater
in interface org.eclipse.jface.text.IDocument
public void insertPositionUpdater(org.eclipse.jface.text.IPositionUpdater updater, int index)
insertPositionUpdater
in interface org.eclipse.jface.text.IDocument
public org.eclipse.jface.text.IPositionUpdater[] getPositionUpdaters()
getPositionUpdaters
in interface org.eclipse.jface.text.IDocument
public java.lang.String[] getLegalContentTypes()
getLegalContentTypes
in interface org.eclipse.jface.text.IDocument
public java.lang.String getContentType(int offset) throws org.eclipse.jface.text.BadLocationException
getContentType
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public org.eclipse.jface.text.ITypedRegion getPartition(int offset) throws org.eclipse.jface.text.BadLocationException
getPartition
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset, int length) throws org.eclipse.jface.text.BadLocationException
computePartitioning
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public void addDocumentPartitioningListener(org.eclipse.jface.text.IDocumentPartitioningListener listener)
addDocumentPartitioningListener
in interface org.eclipse.jface.text.IDocument
public void removeDocumentPartitioningListener(org.eclipse.jface.text.IDocumentPartitioningListener listener)
removeDocumentPartitioningListener
in interface org.eclipse.jface.text.IDocument
public void setDocumentPartitioner(org.eclipse.jface.text.IDocumentPartitioner partitioner)
setDocumentPartitioner
in interface org.eclipse.jface.text.IDocument
public org.eclipse.jface.text.IDocumentPartitioner getDocumentPartitioner()
getDocumentPartitioner
in interface org.eclipse.jface.text.IDocument
public int getLineLength(int line) throws org.eclipse.jface.text.BadLocationException
getLineLength
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public int getLineOfOffset(int offset) throws org.eclipse.jface.text.BadLocationException
getLineOfOffset
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public int getLineOffset(int line) throws org.eclipse.jface.text.BadLocationException
getLineOffset
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public org.eclipse.jface.text.IRegion getLineInformation(int line) throws org.eclipse.jface.text.BadLocationException
getLineInformation
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public org.eclipse.jface.text.IRegion getLineInformationOfOffset(int offset) throws org.eclipse.jface.text.BadLocationException
getLineInformationOfOffset
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public int getNumberOfLines()
getNumberOfLines
in interface org.eclipse.jface.text.IDocument
public int getNumberOfLines(int offset, int length) throws org.eclipse.jface.text.BadLocationException
getNumberOfLines
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
public int computeNumberOfLines(java.lang.String text)
computeNumberOfLines
in interface org.eclipse.jface.text.IDocument
public java.lang.String[] getLegalLineDelimiters()
getLegalLineDelimiters
in interface org.eclipse.jface.text.IDocument
public java.lang.String getLineDelimiter(int line) throws org.eclipse.jface.text.BadLocationException
getLineDelimiter
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException
@Deprecated public int search(int startOffset, java.lang.String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord) throws org.eclipse.jface.text.BadLocationException
search
in interface org.eclipse.jface.text.IDocument
org.eclipse.jface.text.BadLocationException