Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » classloader-library in extension plugin
classloader-library in extension plugin [message #702340] Tue, 26 July 2011 08:30 Go to next message
Bernd  is currently offline Bernd Friend
Messages: 13
Registered: June 2011
Junior Member
Hi everyone.

My question/problem concerns the classLoader-library tag for extending WindowBuilder Pro(WBP)
I am extending WBP via a plugin to add components to the palette. So what I basically have is

<extension point="org.eclipse.wb.core.toolkits">
  <toolkit id="org.eclipse.wb.swing" priority="1010">
    <palette>
      <category description="Some description"
                id="foo.bar.SomeComponents"
                name="Some Components"
                next="org.eclipse.wb.swing.system"
                open="true"
                visible="true">
        <component class="foo.bar.Baz">
           <library  bundle="foo.bar.projectName"
                     jar="lib/myLibrary-1.4.2.jar"
                     src="lib/myLibrary-sources-1.4.2.jar"
                     type="foo.bar.Baz">
           </library>
        </component>
        ...
      </category> 
    </palette>
  </toolkit>
</extension>


My questions now is: The jar (and src) are built from another project and change on a regular basis. Is there a way to make the plugin more dynamic?
Or in other words: Do I have to build the plugin every time I build a new library jar? If not, can someone give me and example how to implement that?

I hope I made my problem clear, if not please let me know.
Thanks in advance for any answers Smile
Re: classloader-library in extension plugin [message #702513 is a reply to message #702340] Tue, 26 July 2011 13:24 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
1. If you want to add new jar into project, then you need to have this jar and it should be in plugin, so you have to update it.

2. If you develop your components and use them in parallel, you can use "project palette contribution". See http://code.google.com/javadevtools/wbpro/NewComponentsTutorial.pdf item 1.1.


Konstantin Scheglov,
Google, Inc.
Re: classloader-library in extension plugin [message #702617 is a reply to message #702513] Tue, 26 July 2011 15:28 Go to previous message
Bernd  is currently offline Bernd Friend
Messages: 13
Registered: June 2011
Junior Member
Ok, that's quite what I expected. Still thanks for the answer Smile .

I don't think Option 2 is possible for me, because I have to specify custom editors for certain properties of the added components (or rather, I already do that).
Previous Topic:WindowBuilder & qooxdoo
Next Topic:Day/night mode for design view
Goto Forum:
  


Current Time: Wed Apr 24 23:50:40 GMT 2024

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

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

Back to the top