|
I tried to use HiveMind in an Eclipse plugin about 10 days ago, and ran
in to the classloader issues that you mention. I spent several hours
trying to understand Eclipse's classloaders, and how best to get
HiveMind to be able to find the modules with ClassLoader.getResources.
I failed miserably, and gave feeling very frustrated. The root of the problem appeared to be that the hivemind.jar and myplugin.jar were not even using the same ClassLoader, even though they were in the one plugin. But I was so confused in the end that I could well be mis-remembering. You approach sounds ideal, and I would be extremely grateful if you were to share the plugin. Mike Knut Wannheden wrote: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]Harish, If this plugin is useful to others I can certainly share it. Would it maybe even make sense to make it available as a separate download under the HiveMind project hood?As I mentioned there are a few classloader issues with the plugin. The problem is basically that every plugin gets loaded by a separate classloader. One of the problems is related to the HiveMind MessageFormatter class and maybe this is something we should address in the HiveMind framwork. 3 of the 4 MessageFormatter constructors will implicitly load the ResourceBundle using the classloader which loaded the MessageFormatter class (i.e. the classloader of the HiveMind plugin). For other plugins than the HiveMind plugin itself this will of course not work. I wonder if we thus should change MessageFormatter to always load the ResourceBundle using an explicit ClassLoader instance and deprecate the MessageFormatter(Log, String) constructor. What do you think? --knut On Tue, 8 Mar 2005 11:59:56 -0500, Harish Krishnaswamy <[EMAIL PROTECTED]> wrote:Cool, any plans of open sourcing the Eclipse HiveMind plugin? -Harish On Tue, 8 Mar 2005 17:38:57 +0100, Knut Wannheden <[EMAIL PROTECTED]> wrote:Harish, On Tue, 8 Mar 2005 11:03:23 -0500, Harish Krishnaswamy <[EMAIL PROTECTED]> wrote: |
- HiveMind application inside Eclipse Knut Wannheden
- Re: HiveMind application inside Eclipse Harish Krishnaswamy
- Re: HiveMind application inside Eclipse Knut Wannheden
- Re: HiveMind application inside Eclipse Knut Wannheden
- Re: HiveMind application inside Eclip... Mike D Pilsbury
- Re: HiveMind application inside ... Knut Wannheden
- Re: HiveMind application ins... Mike D Pilsbury
