Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » DeferredTreeContentManager & co.
DeferredTreeContentManager & co. [message #902885] Mon, 20 August 2012 18:05 Go to next message
Fabio Mancinelli is currently offline Fabio Mancinelli
Messages: 8
Registered: August 2012
Junior Member
Hi everybody.

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?

Thanks,
Fabio


Re: DeferredTreeContentManager & co. [message #902961 is a reply to message #902885] Tue, 21 August 2012 08:33 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
I've never looked at DeferredTreeContentManager, but you could always copy it out into a separate bundle (thus respecting the EPL).
Previous Topic:How can I prevent a part stack from switching view parts?
Next Topic:cannot find org.eclipse.e4.demo.tools.simpleide
Goto Forum:
  


Current Time: Sat Aug 30 14:30:20 EDT 2014

Powered by FUDForum. Page generated in 0.01609 seconds