I am writing an E4 application, and in my TreeViewer I am using a content provider that, in turn, uses a DeferredTreeContentManager for fetching my model objects in background threads.
Now, it turns out that the DeferredTreeContentManager is defined in org.eclipse.ui.workbench, which AFAIU is a problem.
In fact I've read in another thread that that when building E4 RCP application whatever is in org.eclipse.ui.* is not usable. And I've experienced this because I was trying to use a WorkbenchLabelProvider for my TreeViewer and I got this "Workbench is not started yet!" error at startup.
So the question is: is there an alternative way in E4 for doing what is done by DeferredTreeContentManager or should I rewrite my own system with Jobs etc. for doing background fetching of model objects?