You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Emilian Bold <em...@gmail.com> on 2017/07/22 16:04: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 Philippe Mouawad <ph...@gmail.com>.
Hello,
You should be aware of this bug as it might impact your work:

- https://bz.apache.org/bugzilla/show_bug.cgi?id=51822

Regards

On Sat, Jul 22, 2017 at 9:53 PM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:

> Hello Emilian,
> Thanks for your work which looks very promising.
>
> I've started tests and reported some issues at:
> - https://github.com/apache/jmeter/pull/300
>
>
> Regards
>
> On Sat, Jul 22, 2017 at 6:04 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/ea9859995d1fb53
>> 905b720bc57a1ddf283b29ce8
>> 2. https://github.com/emilianbold/jmeter/commit/401221e9f6e480e
>> 43fcf51ee99458a0d7fdd661d
>>
>> --emi
>>
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
>
>


-- 
Cordialement.
Philippe Mouawad.

Re: JMeter GUI Undo/Redo

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello Emilian,
Thanks for your work which looks very promising.

I've started tests and reported some issues at:
- https://github.com/apache/jmeter/pull/300


Regards

On Sat, Jul 22, 2017 at 6:04 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
>



-- 
Cordialement.
Philippe Mouawad.