Class DummyDocument
java.lang.Object
org.yakindu.base.xtext.utils.gmf.directedit.DummyDocument
- All Implemented Interfaces:
IDocument
-
Field Summary
Fields inherited from interface org.eclipse.jface.text.IDocument
DEFAULT_CATEGORY, DEFAULT_CONTENT_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDocumentListener
(IDocumentListener listener) void
void
addPosition
(String category, Position position) void
addPosition
(Position position) void
addPositionCategory
(String category) void
addPositionUpdater
(IPositionUpdater updater) void
addPrenotifiedDocumentListener
(IDocumentListener documentAdapter) int
computeIndexInCategory
(String category, int offset) int
computeNumberOfLines
(String text) computePartitioning
(int offset, int length) boolean
containsPosition
(String category, int offset, int length) boolean
containsPositionCategory
(String category) get()
get
(int offset, int length) char
getChar
(int offset) getContentType
(int offset) String[]
String[]
int
getLineDelimiter
(int line) getLineInformation
(int line) getLineInformationOfOffset
(int offset) int
getLineLength
(int line) int
getLineOffset
(int line) int
getLineOfOffset
(int offset) int
int
getNumberOfLines
(int offset, int length) getPartition
(int offset) String[]
Position[]
getPositions
(String category) void
insertPositionUpdater
(IPositionUpdater updater, int index) void
removeDocumentListener
(IDocumentListener listener) void
void
removePosition
(String category, Position position) void
removePosition
(Position position) void
removePositionCategory
(String category) void
removePositionUpdater
(IPositionUpdater updater) void
removePrenotifiedDocumentListener
(IDocumentListener documentAdapter) void
int
search
(int startOffset, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord) Deprecated.void
void
setDocumentPartitioner
(IDocumentPartitioner partitioner)
-
Constructor Details
-
DummyDocument
-
-
Method Details
-
getChar
- Specified by:
getChar
in interfaceIDocument
- Throws:
BadLocationException
-
getLength
public int getLength() -
get
-
get
- Specified by:
get
in interfaceIDocument
- Throws:
BadLocationException
-
set
-
replace
- Specified by:
replace
in interfaceIDocument
- Throws:
BadLocationException
-
addDocumentListener
- Specified by:
addDocumentListener
in interfaceIDocument
-
removeDocumentListener
- Specified by:
removeDocumentListener
in interfaceIDocument
-
addPrenotifiedDocumentListener
- Specified by:
addPrenotifiedDocumentListener
in interfaceIDocument
-
removePrenotifiedDocumentListener
- Specified by:
removePrenotifiedDocumentListener
in interfaceIDocument
-
addPositionCategory
- Specified by:
addPositionCategory
in interfaceIDocument
-
removePositionCategory
- Specified by:
removePositionCategory
in interfaceIDocument
- Throws:
BadPositionCategoryException
-
getPositionCategories
- Specified by:
getPositionCategories
in interfaceIDocument
-
containsPositionCategory
- Specified by:
containsPositionCategory
in interfaceIDocument
-
addPosition
- Specified by:
addPosition
in interfaceIDocument
- Throws:
BadLocationException
-
removePosition
- Specified by:
removePosition
in interfaceIDocument
-
addPosition
public void addPosition(String category, Position position) throws BadLocationException, BadPositionCategoryException - Specified by:
addPosition
in interfaceIDocument
- Throws:
BadLocationException
BadPositionCategoryException
-
removePosition
- Specified by:
removePosition
in interfaceIDocument
- Throws:
BadPositionCategoryException
-
getPositions
- Specified by:
getPositions
in interfaceIDocument
- Throws:
BadPositionCategoryException
-
containsPosition
- Specified by:
containsPosition
in interfaceIDocument
-
computeIndexInCategory
public int computeIndexInCategory(String category, int offset) throws BadLocationException, BadPositionCategoryException - Specified by:
computeIndexInCategory
in interfaceIDocument
- Throws:
BadLocationException
BadPositionCategoryException
-
addPositionUpdater
- Specified by:
addPositionUpdater
in interfaceIDocument
-
removePositionUpdater
- Specified by:
removePositionUpdater
in interfaceIDocument
-
insertPositionUpdater
- Specified by:
insertPositionUpdater
in interfaceIDocument
-
getPositionUpdaters
- Specified by:
getPositionUpdaters
in interfaceIDocument
-
getLegalContentTypes
- Specified by:
getLegalContentTypes
in interfaceIDocument
-
getContentType
- Specified by:
getContentType
in interfaceIDocument
- Throws:
BadLocationException
-
getPartition
- Specified by:
getPartition
in interfaceIDocument
- Throws:
BadLocationException
-
computePartitioning
- Specified by:
computePartitioning
in interfaceIDocument
- Throws:
BadLocationException
-
addDocumentPartitioningListener
- Specified by:
addDocumentPartitioningListener
in interfaceIDocument
-
removeDocumentPartitioningListener
- Specified by:
removeDocumentPartitioningListener
in interfaceIDocument
-
setDocumentPartitioner
- Specified by:
setDocumentPartitioner
in interfaceIDocument
-
getDocumentPartitioner
- Specified by:
getDocumentPartitioner
in interfaceIDocument
-
getLineLength
- Specified by:
getLineLength
in interfaceIDocument
- Throws:
BadLocationException
-
getLineOfOffset
- Specified by:
getLineOfOffset
in interfaceIDocument
- Throws:
BadLocationException
-
getLineOffset
- Specified by:
getLineOffset
in interfaceIDocument
- Throws:
BadLocationException
-
getLineInformation
- Specified by:
getLineInformation
in interfaceIDocument
- Throws:
BadLocationException
-
getLineInformationOfOffset
- Specified by:
getLineInformationOfOffset
in interfaceIDocument
- Throws:
BadLocationException
-
getNumberOfLines
public int getNumberOfLines()- Specified by:
getNumberOfLines
in interfaceIDocument
-
getNumberOfLines
- Specified by:
getNumberOfLines
in interfaceIDocument
- Throws:
BadLocationException
-
computeNumberOfLines
- Specified by:
computeNumberOfLines
in interfaceIDocument
-
getLegalLineDelimiters
- Specified by:
getLegalLineDelimiters
in interfaceIDocument
-
getLineDelimiter
- Specified by:
getLineDelimiter
in interfaceIDocument
- Throws:
BadLocationException
-
search
@Deprecated public int search(int startOffset, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord) throws BadLocationException Deprecated.- Specified by:
search
in interfaceIDocument
- Throws:
BadLocationException
-