Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Periodic job with UI interaction on eclipse plugin
Periodic job with UI interaction on eclipse plugin [message #987812] Wed, 28 November 2012 04:21
Elton Mathias is currently offline Elton Mathias
Messages: 2
Registered: November 2012
Junior Member
I'm developing an eclipse plugin and I'd like to have a background job that, under certain conditions, pops up a shell. The problem is that:

- asyncExec runs on the UI thread, so I can't do a while(true) ... Thread.sleep(). Same thing for UIJob
- a separate Thread (let's say a Runable, scheduled via ScheduledExecutorService.scheduleatFixedRate) solve the problem of running the job in the background, but then I have no access to the UI thread to reuse the display.
- I also tried to create a new Display ... I've got no errors, but the shell does not shows up.
Trying to reuse the display with Display.getDefault() or Display.getCurrent() hangs while creating Shell and Display.getDefault().getActiveShell() also hangs.

So, what should I do instead ?

Any help is more than welcome!
Previous Topic:eclipse plugin: help getOffset in Position
Next Topic:Plugin project post-testing
Goto Forum:
  


Current Time: Fri Aug 01 18:33:12 EDT 2014

Powered by FUDForum. Page generated in 0.01582 seconds