On 11/02/2008, Marshall Schor <[EMAIL PROTECTED]> wrote: > > OK - I did this just now. First I shut down Eclipse so there's no > possibility of overwriting from there... I looked at the generated > manifest. > The code in the first package listed under Export-Package contains > references to org.eclipse.swt.SWT, but if you look at the uses= clause, > you'll see that the package org.eclipse.swt is not there, as an > example. (Straight cut/paste from the manifest.mf follows, sorry for > the poor formating)
FYI, the 'uses' clause is only there to protect against potential class cast exceptions (it tries to guarantee a consistent class space) as described: http://underlap.blogspot.com/2007/10/osgi-type-safety-and-uses-directive.html however, some people have had problems with Equinox and large sets of 'uses' because of the way it processes them - the forthcoming 1.2.1 release of the bundleplugin supports removal and editing of 'uses': https://issues.apache.org/jira/browse/FELIX-459 so you might find removing the 'uses' improves performance in Eclipse, but this won't help with those missing imports - though you can always add them to the generated Import-Package by using something like: <Import-Package>org.foo,com.bar,*</Import-Package> You can even remove bogus detected imports by using negation: <Import-Package>!org.xyz.internal,org.foo,com.bar,*</Import-Package> HTH Export-Package: org.apache.uima.taeconfigurator.editors.ui.dialogs;use > s:="org.eclipse.core.runtime,org.eclipse.swt.custom,org.apache.uima.a > nalysis_engine,org.eclipse.jface.fieldassist,org.eclipse.ui.forms.wid > gets,org.apache.uima,org.apache.uima.taeconfigurator,org.eclipse.core > .resources,org.apache.uima.resource.metadata,org.eclipse.swt.events,o > rg.apache.uima.cas,org.apache.uima.taeconfigurator.model,org.eclipse. > swt.layout,org.apache.uima.resource,org.apache.uima.taeconfigurator.e > ditors.ui,org.apache.uima.taeconfigurator.editors,org.eclipse.swt.gra > phics,org.eclipse.swt.widgets,org.eclipse.ui.fieldassist,org.eclipse. > jface.dialogs", ... > -- Cheers, Stuart

