Hi Simon and Thomas, Thanks for your help. After Thomas explained the problem I found a blog about split packages. To help future lost souls, it is here [1].
Best regards, Wim [1] http://eclipsesource.com/blogs/2009/07/14/why-i-cant-recommend-using-import-package/ On Wed, Sep 8, 2010 at 5:34 AM, Thomas Watson <tjwat...@us.ibm.com> wrote: > If you look at the exports of the two packages from the org.eclipse.ui > bundle you will notice the following for the org.eclipse.ui and > org.eclipse.ui.part package exports: > > ui.workbench=split;mandatory:="ui.workbench" > > This indicates that the packages org.eclipse.ui and org.eclipse.ui.part are > split packages. The org.eclipse.ui bundle aggregates the parts of these > packages into "complete" packages. If you want to only import the "parts" of > these packages as exported by the org.eclipse.ui.workbench bundle then you > must specify the mandatory matching attribute ui.workbench=split attribute > on your import package statement: > > Import-Package: org.eclipse.ui; ui.workbench=split, org.eclipse.ui.part; > ui.workbench=split > > Hope that helps. You should ask eclipse specific questions in the eclipse > forums. > > Tom > > > > [image: Inactive hide details for Wim Jongman ---09/07/2010 01:28:08 > PM---Hi, My bundle 231 is installed. If I do a diag on it it says]Wim > Jongman ---09/07/2010 01:28:08 PM---Hi, My bundle 231 is installed. If I do > a diag on it it says that it cannot resolve org.eclipse.ui and > org.eclipse.ui.part. How > > > From: > Wim Jongman <wim.jong...@gmail.com> > To: > OSGi Developer Mail List <osgi-dev@mail.osgi.org> > Date: > 09/07/2010 01:28 PM > Subject: > [osgi-dev] Resolution problem > ------------------------------ > > > > Hi, > > My bundle 231 is installed. If I do a diag on it it says that it cannot > resolve org.eclipse.ui and org.eclipse.ui.part. However, these two packages > are exported by org.eclipse.ui.workbench which is in my list (80). My other > bundles who also import the packages but now thru import bundle of > org.eclipse.ui which re-exports o.e.ui.workbench are fine. > > If I change 231 to import bundle instead of import package, all is fine. > > What am I missing here? Below is my relevant bundle list, the diag of the > unresolved bundle and an inquiry on the packages it says it cannot resolve. > > Thanks for looking at this. > > Regards, > > Wim > > > > > > > > > 80 ACTIVE org.eclipse.ui.workbench_3.6.0.I20100603-1100 > 231 INSTALLED com.remainsoftware.gravity.core.ui_1.0.0.qualifier > > osgi> diag 231 > reference:file:/C:/Users/jongw/Workspaces/Gravity/com.remainsoftware.gravity.core.ui/ > [231] > Direct constraints which are unresolved: > Missing imported package org.eclipse.ui_0.0.0. > Missing imported package org.eclipse.ui.part_0.0.0. > > osgi> packages org.eclipse.ui > org.eclipse.ui; > version="0.0.0"<org.eclipse.ui.workbench_3.6.0.I20100603-1100 [80]> > com.remainsoftware.gravity.icons_1.0.0 [9] imports > org.eclipse.gef_3.6.0.v20100525-1225 [65] imports > org.eclipse.ui_3.6.0.I20100603-1100 [78] imports > org.eclipse.ui.views.log_1.0.100.v20100423 [79] imports > com.remainsoftware.gravity.application_1.0.0.qualifier [84] imports > org.eclipse.ui.forms_3.5.0.v20100427 [213] imports > > osgi> packages org.eclipse.ui.part > org.eclipse.ui.part; > version="0.0.0"<org.eclipse.ui.workbench_3.6.0.I20100603-1100 [80]> > com.remainsoftware.gravity.icons_1.0.0 [9] imports > org.eclipse.gef_3.6.0.v20100525-1225 [65] imports > org.eclipse.ui_3.6.0.I20100603-1100 [78] imports > org.eclipse.ui.views.log_1.0.100.v20100423 [79] imports > com.remainsoftware.gravity.application_1.0.0.qualifier [84] imports > org.eclipse.ui.forms_3.5.0.v20100427 [213] imports > > osgi> _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev >
<<ecblank.gif>>
<<graycol.gif>>
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev