How to use CommandProcessor with progress dialog?

My code is something like that!

<![CDATA[
ProgressDialog progress;
for(int 1=0;i<100;i++){
CommandProcessor.getInstance().executeCommand(project,
runnable,"ddd","ddd");
 /**
  * The runnable is updating the code. 
  * Then i will update my progress dialog.
  */
progress.next();
}
]]>

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

Please sign in to leave a comment.