Skip to main content



      Home
Home » Newcomers » Newcomers » Basic plugin questions
Basic plugin questions [message #137568] Wed, 15 February 2006 06:14 Go to next message
Eclipse UserFriend
Hi,

I am trying to create a RCP application. I found some tutorials on how
to do this, and it seems to work.

In this application, I am planning to use some external, but also
internal, libraries, for instance log4j, Jakarta's commons-
configuration, ..., and self-created libraries, which are not only used
in my RCP project. These libraries are packed up in jar files.

I can, of course, put all these jar files in my RCP application, but it
seems more appropriate to me to create simple plugins (maybe one plugin
per library, so I would have one logging plugin, which contains
everything needed to use log4j, one configuration plugin, which contains
everything needed to use commons-configuration, and a separate plugin
for every "module" containing our self-created code) packing up just the
used libraries.

The reasons for doing this are reducing complexity in my main RCP
application, a cleaner way to upgrade to a new version of each library
used, reuse (each plugin could be used in several projects), and the
Eclipse builtin update mechanism should work better if I have several
smaller plugins, each of which can be updated separately.

Does this make sense?

If yes, can someone point me to an example, where similar stuff has
already been done (there must be some simple plugins, which basically do
nothing but packing together some jar files), and maybe some tutorials
or other documentation (all I found were tutorial on how to create
plugins which interact with the GUI, but the plugins I want to create
should be much simpler)?

If no, can someone provide me with an idea of how to solve this problem
in Eclipse?

Thanks,

Best Regards,

Christoph Jäger
Re: Basic plugin questions [message #137721 is a reply to message #137568] Wed, 15 February 2006 18:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mailinglists.pellaton.li

Hello

To me, your plan makes perfectly sense. I always introduce external libs
to RCP applications using a library plug-in wrapping the jar file.

Literature about this is quite rare, but I once found that:
http://today.java.net/today/2004/02/02/ch12Eclipse.pdf (about page 6)

A good example of how to do a library plug-in is the org.junit plug-in
distributed in every Eclipse SDK. Just import it's source and have a
look there.

Hope this helps

Michael
Re: Basic plugin questions [message #137958 is a reply to message #137568] Thu, 16 February 2006 23:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: phillip.baird.clear.net.nz

I'd recommend you get hold of the Eclipse RCP book
(http://www.eclipsercp.org). It covers packaging jars into plugins as
well as dealing with the classloader issues you'll strike with log4j.

PhillipB.
Re: Basic plugin questions [message #137993 is a reply to message #137721] Fri, 17 February 2006 03:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,

thanks a lot, I will have a look at this.

Best Regards,

Christoph

On Thu, 2006-02-16 at 00:35 +0100, Michael Pellaton wrote:
> Hello
>
> To me, your plan makes perfectly sense. I always introduce external libs
> to RCP applications using a library plug-in wrapping the jar file.
>
> Literature about this is quite rare, but I once found that:
> http://today.java.net/today/2004/02/02/ch12Eclipse.pdf (about page 6)
>
> A good example of how to do a library plug-in is the org.junit plug-in
> distributed in every Eclipse SDK. Just import it's source and have a
> look there.
>
> Hope this helps
>
> Michael
Re: Basic plugin questions [message #138005 is a reply to message #137958] Fri, 17 February 2006 03:34 Go to previous message
Eclipse UserFriend
Hi Phillip,

the book seems to answer several open questions I have regarding my RCP
application. I will try to get it as soon as possible.

Thanks,

Best Regards,

Christoph

On Fri, 2006-02-17 at 17:50 +1300, Phillip Baird wrote:
> I'd recommend you get hold of the Eclipse RCP book
> (http://www.eclipsercp.org). It covers packaging jars into plugins as
> well as dealing with the classloader issues you'll strike with log4j.
>
> PhillipB.
Previous Topic:how to find eclipse installed path programatically?
Next Topic:Quantum DB Plugin Installation
Goto Forum:
  


Current Time: Wed Apr 30 08:52:47 EDT 2025

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

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

Back to the top