Page 1 of 1

Replace All in Find/Replace Dialog shows wrong number of replaced Elements when used in AuthorView.

Posted: Fri Nov 18, 2022 5:39 pm
by Stevee
Hi,
when using the Find/Replace Dialog to replace all matches of some text by some other, there will be always displayed that only 1 match was replaced even if more matches have been replaced.

Steps to reproduce:
=> Create some content in OxygenXML AuthorView using some text that occures multiple times.
=> Open Find/Replace Dialog (e.g with CTRL+F Shortcut)
=> Enter Find and Replace with text that occurs more than 1 times in the document and the text it should be replaced with.
=> Press Relace All

Result: There will be displayed "1 Match replaced" although multiple Elements have been replaced.

Note: This does not occur in Text View, the right amount of replaced matches will be displayed.

Greets
Stevee

Re: Replace All in Find/Replace Dialog shows wrong number of replaced Elements when used in AuthorView.

Posted: Mon Nov 21, 2022 12:51 am
by chrispitude
Hi Stevee,

Using Oxygen v25 build 2022110706, the replacement count works for me:

image.png

Re: Replace All in Find/Replace Dialog shows wrong number of replaced Elements when used in AuthorView.

Posted: Mon Nov 21, 2022 6:55 pm
by Stevee
Hi chrispitude

Sorry, I forgot to add that i refer to the OxygenXML Author Eclipse Plugin. (25.0 2022110706)
I assume you tried to reproduce this in the Standalone OxygenXMLAuthor? Then it may is only an Issue in the Eclipse Plugin.

Greets Stevee.

Re: Replace All in Find/Replace Dialog shows wrong number of replaced Elements when used in AuthorView.

Posted: Tue Nov 22, 2022 9:17 am
by Radu
Hi Stevee,

Thanks for the report.
I can reproduce the problem when using the Oxygen Eclipse plugin, I added an internal issue on our side, to see if we can fix this somehow.

Regards,
Radu

Re: Replace All in Find/Replace Dialog shows wrong number of replaced Elements when used in AuthorView.

Posted: Wed May 24, 2023 7:29 am
by Radu
Hi,
Pasting here the ID of the internal issue for future reference:
EXM-51889 [Author/Eclipse] Replace all in Find/Replace Dialog does not show number of replaced matches
I will try to allocate some time to look into this for the Oxygen 26 release (Autumn this year).
Regards,
Radu

Re: Replace All in Find/Replace Dialog shows wrong number of replaced Elements when used in AuthorView.

Posted: Thu Oct 12, 2023 8:59 am
by Radu
Hi,
This problem should be fixed in Oxygen 26.0 which we released yesterday.
Regards,
Radu