Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Progress Monitor...

Marco Rossi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

in my Eclipse plug-in I have a menu item which opens an SWT FileDialog...the user selects an XML file and its processing starts.
Processing can takes up to 20 seconds to complete if the selected XML is big.

At the moment I am running the task with a class extending ActionDelegate and implementing IEditorActionDelegate.
In this case, the task is done inside the UI Thread and therefore the UI is "freezed" till the task is completed.

What I would like to do is show a IProgressMonitor, like

but to be honest I do not know how I can integrate it with my FileDialog...

As far as I know I have to change from <action> to <command> inside my plugin.xml....

I tried to implement the tutorial from that link and of course it works well.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic