Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » Bundle ClassLoader Question(Request distinction in extension point definitions)
Bundle ClassLoader Question [message #668258] Wed, 04 May 2011 13:30 Go to next message
Eclipse UserFriend
What is the distinction between the org.eclipse.wb.core.classLoadingContributor extension point and the classLoader-library element used by the toolkit element in the org.eclipse.wb.core.toolkits extension point?

For example, if I have a JAR, myUI.jar, containing my components located in a bundle identified as com.testco.internal.wb, would the XML look like:

<extension point="org.eclipse.wb.core.toolkits">
    <toolkit id="com.testco.wb.nwt">
        <classLoader-library
            bundle="com.testco.internal.wb"
            jar="myUI.jar" />
    ...
    </toolkit>
</extension>


Note that this extension is being specified in a different plug-in, i.e. com.testco.wb.nwt.

Where does the org.eclipse.wb.core.classLoadingContributor extension point fall in this scenario?

Thank you for the clarification.
Re: Bundle ClassLoader Question [message #668259 is a reply to message #668258] Wed, 04 May 2011 13:39 Go to previous message
Eclipse UserFriend
Well, name "classLoadingContributor" does not fully reflects its usage. It is used to load JavaInfo model class during "paste" operation. Paste happens in WB Core, which does not know about specific UI toolkits. So, these toolkits should inform Core that they provide classes for specific namespaces.

classLoader-library is used to contribute jar into toolkit runtime ClassLoader, i.e. put it near to java.awt.Component, etc. So, this allows to load for palette components which are not in classpath yet.
Previous Topic:String editor
Next Topic:Custom Button
Goto Forum:
  


Current Time: Wed Jul 23 17:21:26 EDT 2025

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

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

Back to the top