Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Split plugin over multiple projects
Split plugin over multiple projects [message #462922] Fri, 02 February 2007 12:55 Go to next message
Eclipse UserFriend
Originally posted by: christian_schloemmer.yahoo.com

Hello,

is it possible to create a pluginproject that references other projects in the workspace without converting them to plugin projects? I also don't want to deploy the other projects to a .jar and reference the .jar from my plugin-project because that would mean I had to deploy the respective project each time I make a change.

Or is there any other possibility to split a plugin over more projects?

I would appriciate any answers - thx in advance,

Christian
Re: Split plugin over multiple projects [message #462923 is a reply to message #462922] Fri, 02 February 2007 13:09 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Christian Schloemmer wrote:
> Hello,
>
> is it possible to create a pluginproject that references other projects in the workspace without converting them to plugin projects? I also don't want to deploy the other projects to a .jar and reference the .jar from my plugin-project because that would mean I had to deploy the respective project each time I make a change.
>
> Or is there any other possibility to split a plugin over more projects?
>
> I would appriciate any answers - thx in advance,
>
> Christian
What is the intent?
If you refer to other non plugin projects from your plugin projects you
won't be able to use your plugin without having the other pluins in place.
So make your projects plugin projects and simply deploy them as needed.

Regards
Stefan
Re: Split plugin over multiple projects [message #462927 is a reply to message #462922] Fri, 02 February 2007 14:02 Go to previous messageGo to next message
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
Hello Christian,

Yes you can develop your projects as a set of plugin projects. For this you have to create seperate plugin projects and one main plugin project and you can add all other plugin projects in to the dependency of the main project.


Regards,
Rohit Khariwal
Re: Split plugin over multiple projects [message #462929 is a reply to message #462922] Fri, 02 February 2007 14:12 Go to previous messageGo to next message
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
Hello Christian,

Yes you can develop your projects as a set of plugin projects. For this you have to create seperate plugin projects and one main plugin project and you can add all other plugin projects in to the dependency of the main project.


Regards,
Rohit Khariwal
Re: Split plugin over multiple projects [message #462931 is a reply to message #462922] Fri, 02 February 2007 14:39 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Christian,

No, it's not possible to have a plugin project that depends on a non-plugin project. The other poster misread the question I think.

However, when you have a plugin, it can be used as a Jar anyway, so I don't see there is a problem moving towards plugin projects.

Alex.
Re: Split plugin over multiple projects [message #462955 is a reply to message #462927] Fri, 02 February 2007 14:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian_schloemmer.yahoo.com

Hello Rohit,

that aproach would result in more plugins, but I'm supposed to have only one. Even though, I want to have more projects when developing my plugin since its a complex project and parts of it have to be compiled with different java versions.

I already thought about using Java projects instead of plugin projects and deploy the binaries manually or with ant, but that would mean I lose PDE support...

Christian
Re: Split plugin over multiple projects [message #462957 is a reply to message #462927] Fri, 02 February 2007 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian_schloemmer.yahoo.com

Hello Rohit,

that aproach would result in more plugins, but I'm supposed to have only one. Even though, I want to have more projects when developing my plugin since its a complex project and parts of it have to be compiled with different java versions.

I already thought about using Java projects instead of plugin projects and deploy the binaries manually or with ant, but that would mean I lose PDE support...

Christian
Re: Split plugin over multiple projects [message #462958 is a reply to message #462922] Fri, 02 February 2007 14:42 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Christian,

No, it's not possible to have a plugin project that depends on a non-plugin project. The other poster misread the question I think.

However, when you have a plugin, it can be used as a Jar anyway, so I don't see there is a problem moving towards plugin projects.

Alex.
Re: Split plugin over multiple projects [message #462962 is a reply to message #462931] Fri, 02 February 2007 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian_schloemmer.yahoo.com

Thx a lot for your fast response. Indeed - thats exactly what I wanted to know.

Christian

PS: The problem with having more plugins is simply that I don't want to split related functionality over more plugins, even though it makes sense to split some parts into seperate projects for development.
Re: Split plugin over multiple projects [message #462968 is a reply to message #462962] Fri, 02 February 2007 16:09 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You've already said that you want to split it over lots of projects for modularity -- that's exactly what the OSGi model tries to encourage at deployment time, too. There's a lot of code in Eclipse that's split across more than one bundle; most are split between UI and non-UI layers as an observation. But even things like the PDE is split across the JDT and IDE functions, and that sits on top of the RCP set which includes JFace, SWT, Equinox Common/Runtime etc.

So having more-than-one should be seen as a good thing, not a bad thing :-)

Alex.
Previous Topic:using a plugin as a service, Microkernel-like design pattern.
Next Topic:Launching error on different PC
Goto Forum:
  


Current Time: Wed Sep 18 06:22:27 GMT 2024

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

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

Back to the top