Inter-fragment-Dependencies [message #115955] |
Wed, 13 August 2008 12:00 |
Eclipse User |
|
|
|
Originally posted by: Jens.Borrmann.gillardon.de
Hi,
given the following situation: A host bundle host, two fragments
fragment1
Fragment-Host: host
Export-Package: fragment1
fragment2
Fragment-Host: host
Import-Package: package1
Using eclipse I cannot find a way to have direct access to package1 from
within fragment2. Is there a possibility to write something in fragment2
like:
import package1;
SomeClassFromPackage1 x = new SomeClassFromPackage1();
assuming that fragment1 exports package1 and fragment2 imports package1.
I have tried all my eclipse tricks but still the IDE won't let me do
this...
What I figured out is that the following code snippet works in fragment2:
Object x =
this.getClass().getClassLoader().loadClass("package1.SomeClassFromPackage1 ").newInstance();
On the OSGi mailing list BJ Hargrave and Thomas Watson told me this was
not a general OSGi issue but a PDE issue. Unfortunately, I did not get
an answer on the pde-dev mailing list. Maybe here somebody can help me...
Best regards, Jens
|
|
|
|
Re: Inter-fragment-Dependencies [message #116315 is a reply to message #116104] |
Wed, 20 August 2008 06:28 |
Eclipse User |
|
|
|
Originally posted by: Jens.Borrmann.gillardon.de
Hi Danail,
thanks for your answer.
Your "quick workaround" works via adding the first fragment to the
"normal" build path (configure build path...) of the second one, doesn't
it? Or is there also a way to do this using the manifest file, which I
would like much more.
Are there any plans to remove this limitation of PDE?
-- Jens
|
|
|
|
Powered by
FUDForum. Page generated in 0.03640 seconds