Bug 575242 - fixed progress reporting and cancellation on replace

For many elements to be changed, initial preparation phase caused UI to
hang without any progress and any chance to cancel the long running
operation. Added progress monitors checks and reporting through the
relevant parts of code, so that operation is not blocking anymore and
shows some decent progress.

Change-Id: Icb5c8beb59ddeea39c59901b655fea59997dbde6
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/183747
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
1 file changed