You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Emilian Bold <em...@gmail.com> on 2017/07/22 12:48:08 UTC

JMeter GUI Undo/Redo

Hello,

See my undo/redo commits
https://github.com/emilianbold/jmeter/commits/emilianbold-undoredo

The 1st commit [1] fixes #57039 -- it was a matter of sharing internal
data and then editing that in the UI.

The other commit [2] rewrites part of UndoHistory using the standard
javax.swing.undo classes and also introduces the concept of an 'undo
transaction'.

This is needed to group multiple changes like the node changes after
"Search for a node by name".

The are probably many other places that need some
beginUndoTransaction/endUndoTransaction pairs, I've only added a few.

Also, we probably need a way to temporarily disable UndoHistory, for
example during loading. I haven't tested this, so please confirm if
loading large files has a big impact with undo enabled.

Some low hanging fruit exists for compound edits where we could
merge/swallow edits.

1. https://github.com/emilianbold/jmeter/commit/ea9859995d1fb53905b720bc57a1ddf283b29ce8
2. https://github.com/emilianbold/jmeter/commit/401221e9f6e480e43fcf51ee99458a0d7fdd661d

--emi

Re: JMeter GUI Undo/Redo

Posted by Emilian Bold <em...@gmail.com>.
Oops, wrong dev@ mailing list.

--emi


On Sat, Jul 22, 2017 at 3:48 PM, Emilian Bold <em...@gmail.com> wrote:
> Hello,
>
> See my undo/redo commits
> https://github.com/emilianbold/jmeter/commits/emilianbold-undoredo
>
> The 1st commit [1] fixes #57039 -- it was a matter of sharing internal
> data and then editing that in the UI.
>
> The other commit [2] rewrites part of UndoHistory using the standard
> javax.swing.undo classes and also introduces the concept of an 'undo
> transaction'.
>
> This is needed to group multiple changes like the node changes after
> "Search for a node by name".
>
> The are probably many other places that need some
> beginUndoTransaction/endUndoTransaction pairs, I've only added a few.
>
> Also, we probably need a way to temporarily disable UndoHistory, for
> example during loading. I haven't tested this, so please confirm if
> loading large files has a big impact with undo enabled.
>
> Some low hanging fruit exists for compound edits where we could
> merge/swallow edits.
>
> 1. https://github.com/emilianbold/jmeter/commit/ea9859995d1fb53905b720bc57a1ddf283b29ce8
> 2. https://github.com/emilianbold/jmeter/commit/401221e9f6e480e43fcf51ee99458a0d7fdd661d
>
> --emi