Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsImporting a class from a hosted plugin
https://www.eclipse.org/forums/index.php/mv/msg/1075618/1726474/#msg_1726474
I am not managing to let a class defined in a hosted (fragment) plug-in be visible from an external plug-in.
This is what I have done:
PG_A hosts PG_B
PG_B defines class C1 in package P1.
PG_B exports package P1
PG_A as well exports package P1
PG_C adds PG_A as plug-in dependency (or as well package P1 as imported package)
As I try to import P1.C1 in plug-in PG_C, I get an error since the class is not reachable from there.
Any clue on something I am missing?
thanks,
-Piero
]]>Piero Campalani2016-03-14T08:58:47-00:00Re: Importing a class from a hosted plugin
https://www.eclipse.org/forums/index.php/mv/msg/1075618/1726479/#msg_1726479
IMHO using fragments that way is wrong. But of course I don't know your use case. I blogged about that: http://blog.vogella.com/2016/02/09/osgi-bundles-fragments-dependencies/]]>Dirk Fauth2016-03-14T09:14:45-00:00Re: Importing a class from a hosted plugin
https://www.eclipse.org/forums/index.php/mv/msg/1075618/1726622/#msg_1726622
My case is the following: my hosted plug-in is the test plug-in.
I know there are different philosophies about how to implement a test plug-in or a test fragment and so on: I chose a fragment plug-in.
A different test plug-in now would like to use an utility I created within the test plug-in, so I created this kinda weird import route.