Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » New WB SWT project - Adding PluginLibraries
New WB SWT project - Adding PluginLibraries [message #902408] Fri, 17 August 2012 14:01 Go to next message
Arthur Fücher is currently offline Arthur Fücher
Messages: 59
Registered: August 2012
Member
Hi,

I made a new component and a plugin to put it on the palette of window builder. I saw that when a new SWT project is create a lot of jars are added to the project.

ProjectUtils.addPluginLibraries(javaProject, "org.eclipse.jface");

How can I put my jar? I put:
ProjectUtils.addPluginLibraries(javaProject, "com.test.fw.wb.mvc.core");
and export it to /eclipse/plugin, but don't find it..

Anyone have an idea of what I need to do?
Re: New WB SWT project - Adding PluginLibraries [message #902424 is a reply to message #902408] Fri, 17 August 2012 14:26 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
Actually this is not the best way.
What is much easier is creating PDE project and adding org.eclipse.ui and your library/plugin.

And no, you can not extend SWT project wizard.
If you need your project specific wizard, you can create new one.


Konstantin Scheglov,
Google, Inc.
Re: New WB SWT project - Adding PluginLibraries [message #902433 is a reply to message #902424] Fri, 17 August 2012 14:45 Go to previous messageGo to next message
Arthur Fücher is currently offline Arthur Fücher
Messages: 59
Registered: August 2012
Member
Yes, I create my wizard...


I try to do that, create a new PDE project and put library inside, but don't work! The palette don't find my component class...
Re: New WB SWT project - Adding PluginLibraries [message #902434 is a reply to message #902433] Fri, 17 August 2012 14:49 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
You need to add your library into manifest.mf and .classpath


Konstantin Scheglov,
Google, Inc.
Re: New WB SWT project - Adding PluginLibraries [message #902435 is a reply to message #902434] Fri, 17 August 2012 14:55 Go to previous messageGo to next message
Arthur Fücher is currently offline Arthur Fücher
Messages: 59
Registered: August 2012
Member
Ok,

So I have 2 projects:
- test.*.core: Have components;
- test.*: Have the implementation to use palette, objects class info and wbp-component.xml

I need to create a new PDE and put the other 2 inside? Sorry, but I don't understand what I need to do...
Re: New WB SWT project - Adding PluginLibraries [message #902445 is a reply to message #902435] Fri, 17 August 2012 15:26 Go to previous message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
You have 2 Eclipse instances.
Dev: where you develop your Info, descriptions wbp-component.xml, etc
Run: where you open WindowBuilder editor, drop components, see palette, etc.

You need to create PDE project in RunEclipse, import plugin test.*.core (probably as source) and add dependency on this plugin from PDE project.
So, your PDE project will see component classes.


Konstantin Scheglov,
Google, Inc.
Previous Topic:New WB SWT project - Adding PluginLibraries
Next Topic:Avoiding user to change the source
Goto Forum:
  


Current Time: Fri Oct 31 18:53:21 GMT 2014

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

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