Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] re: Question about how to handle ICU...

Thanks Paul!

That nicely sums up what we were looking for! Considering one of our goals for DTP in Galileo is to be "more RCP friendly" - the import package way of doing things certainly has its advantages.

Brian Fitzpatrick
Eclipse Data Tools Platform PMC Chair
Eclipse Data Tools Platform Connectivity Team Lead
Staff Software Engineer, Sybase, Inc.

Paul Webster <pwebster@xxxxxxxxxxxxxxxxxxx>
Sent by: cross-project-issues-dev-bounces@xxxxxxxxxxx

02/04/2009 11:35 AM

Please respond to
Cross project issues <cross-project-issues-dev@xxxxxxxxxxx>

Cross project issues <cross-project-issues-dev@xxxxxxxxxxx>
Re: [cross-project-issues-dev] re: Question about how to handle         ICU...

Hi Brian,

On Wed, Feb 4, 2009 at 12:52 PM,  <brian.fitzpatrick@xxxxxxxxxx> wrote:
>  but I was wondering if someone
> could explain the benefits of using "Import-Package" directives instead of
> "Require-Bundle"...
> I'm guessing it's as simple as not having to pull in the entire bundle and
> only pulling in those packages you really need, but I was hoping someone
> could provide a better explanation.

Require-Bundle ties you to the bundle, but Import-Package allows OSGi
to provide you the packages from wherever appropriate.  I'm not 100%
on the history but Require-Bundle evolved from the eclipse plugin way
of doing things but Import-Package is the OSGi recommended way of
doing things.

For example, in the ICU case is the main bundle we ship
with the platform, but a different bundle, provides
the same API as but is about 20% the size (it only
provides replacements for the main and  If you use Import-Package, an RCP could ship with and everything will still work (and they've cut 5 Meg
out of their application).

If you use Require-Bundle, then could not be used in
this manner.


Paul Webster
Hi floor.  Make me a sammich! - GIR
cross-project-issues-dev mailing list

Back to the top