Extension Point and Class Loading Error [message #605166] |
Sat, 20 March 2010 08:19 |
Eclipse User |
|
|
|
Originally posted by: eclipse-nospam-gaurav-vaish.gmail.com
Hi,
I have created an extension point that allows an extension to specify a
class that this plugin will load. Let's call them BasePlugin (that defines
the extension point), UsePlugin (that defines the extension).
Usage is something like:
<extension point="my.point.name">
<item class="fully.qualified.name.of.ClassName" />
</extension>
In BasePlugin, I am able to get the class name (using IExtensionRegistry)
but results in ClassNotFoundException during
getClass().getClassLoader.loadClass(...).
Is there a resolution other than using
Eclipse-BuddyPolicy: registered
and
Eclipse-RegisterBuddy: id.of.base.extension
Because, say, while working with org.eclipse.ui plugin, I don't need to do
anything like that... then why for custom plugins?
Sorry for cross posting.
Thanks in advance.
--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com
|
|
|
Powered by
FUDForum. Page generated in 0.02759 seconds