-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
edit / update / reopen #315
Comments
In the version of RichTextArea available on 5/27/24 I no longer see the crash associated with option (2). Options (3) and (4) are the same. |
Please test again with the most recent 1.1.4-SNAPSHOT version. If you still find exceptions, please post them, with clear steps of how to reproduce. Ideally, provide a SSCCE simple class, for instance using a simple class like BasicDocumentDemo. As for the use of But if you check its Javadoc: it wasn't intended to be used directly. Most likely we need to make |
I am experiencing a cluster of issues with restoring documents in the RichTextArea that I do not understand. In the 1.1.2 version I can reproduce the issues with a modified version of the FullFeaturedDemo.
Modifications:
The
document
variable is no longer final and simplified to,Buttons are created as follows,
And the buttons are added to
toolbar
.Behavior:
I expect that I should be able to: open
document
(with the toolbar button) / edit / press update / press clear / press open or set -- and see my edited document again. Here is what I get:With the second (action factory) version of 'set' I can: open / add text to the very end / update / clear / set -- and, as expected, the edited text is restored.
Still with the second (action factory) version of 'set': open / edit text not at the end / update / clear / set -- results in StringIndexOutOfBoundsException (PieceTable.java: 83).
With the first (setDocument) version of 'set': open / edit / update / clear / set -- results in no visible change (the visible screen remains clear though I believe the RichTextArea
document
is in fact updated).With 'set' to the side: open / edit / update / and the open button again - reverts to the original version of
document
.In any case, what I cannot do is create a document, save (perhaps to disk now with Serializable) reopen, edit, and expect it to save/open again.
FullFeaturedDemo.zip
The text was updated successfully, but these errors were encountered: