[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2t] Re: Galileo performance twice as slow?

Hi Jos,

that's good news.

The ResourceLoaderFactory stores the resource loader per thread (as the method name getCurrentThreadResourceLoader() suggests). Your workflow will be executed in a seperate thread and therefore does not use the resource loader, that was registered in the bundle activator.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 24.08.09 16:07, schrieb Jos Warmer:
Sebastian,

Good news! it works ok when I put the code just in front of the run
method and add the necessary buddy policies. Learned some interesting
things about OSGi class loading on the way.

The strange thing however is that setting the caching classloader in the
Activator of the plugin doesn't work. Directl;y after setting it, it is
ok, but when later on the run method is called the classloader (asked
with ResourceLoaderFactory.getCurrentThreadResourceLoader() returns
null. It seems to get lost somewhere while the plugin is active.

Jos