How to use CommandProcessor with progress dialog?

My code is something like that!

Then progress dialog cannot update/repaint.
What's wring in there?

Please sign in to leave a comment.