Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Extension Point and Class Loading Error
Extension Point and Class Loading Error [message #605166] Sat, 20 March 2010 08:19
Eclipse UserFriend
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
Previous Topic:moreUnit 1.3.3
Next Topic:Best place to ask plug-in development questions?
Goto Forum:
  


Current Time: Wed Apr 24 22:22:04 GMT 2024

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top