AbstractDocument.replace() throws AssertionFailedException [message #1749066] |
Thu, 01 December 2016 09:30  |
Eclipse User |
|
|
|
Hello all,
I want to change text in a editor after a user typed something in. For this purpose I added a ITextListener to my TextEditor.
When calling the replace method of from the ITextListener's textChanged method I get the exception attached below. Is a there a workaround existing so that I can change the text in an editor based on what a user is typing without using the replace method of the IDocument interface?
Best Regards,
Ralph
==========================
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
at org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer.handleAboutToBeChanged(DocumentLineDiffer.java:798)
at org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer.documentAboutToBeChanged(DocumentLineDiffer.java:767)
at org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged(AbstractDocument.java:640)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1092)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25523 seconds