On Fri, 31 Oct 2025 19:31:05 GMT, Kevin Rushforth <[email protected]> wrote:
>> Andy Goryachev has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> undo/redo javadoc in model only
>
> modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/CodeArea.java
> line 446:
>
>> 444: public final void setText(String text) {
>> 445: TextPos end = getDocumentEnd();
>> 446: getModel().replace(null, TextPos.ZERO, end, text);
>
> The javadoc description for this method still says "an undo event gets
> created".
this is one place where I do want to mention the undo event.
How about:
* The caret gets reset to the start of the document, selection gets
cleared,
* and an undo event is created if {@link #isUndoRedoEnabled()} returns
{@code true}.
?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1941#discussion_r2482526667