Skip to main content


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 09:21
Elton Mathias is currently offline Elton MathiasFriend
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: Thu Apr 25 15:41:33 GMT 2024

Powered by FUDForum. Page generated in 0.02757 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top