• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Progress Monitor...

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.

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!