Using DS in RCP [message #699144] |
Wed, 20 July 2011 19:23  |
Eclipse User |
|
|
|
I have a simple DS (adds two number together) built that works in a pure Equinox runtime config. It is in a separate bundle and exports only the interface.
I am trying to use that working DS in an RCP application. I have the component.xml with the DS service as a referenced service. I can not get the service instantiated and injected into the RCP variables to use.
Are there any examples of how to configure the RCP application and call a DS service?
I've searched both these forums and using Google but have not found any samples.
Thanks for taking the time to read my request for help!
Timothy Vogel
|
|
|
|
|
Re: Using DS in RCP [message #723253 is a reply to message #699498] |
Thu, 08 September 2011 03:14   |
Eclipse User |
|
|
|
Originally posted by:
On 2011-07-21 18:37, Timothy Vogel wrote:
> Thanks for your reply!
>
> org.eclipse.equinox.ds and org.eclipse.equinox.util are in both plug-in
> projects, the one with just the simple calc service and the one that is
> a RCP workbench project.
>
> I'm not sure how to start the org.eclipse.equinox.ds in the RCP project.
If you have a product build, you can do that as follows: Open the
Eclipse product editor, go to tab "configuration", add a new entry to
the upper list for the bundle org.eclipse.equinox.ds and set Auto-Start
flag to true. This may not be sufficient for your Eclipse launching
configuration (depending on how you configured it). Therefore, if you
test your application within Eclipse, you need to open the Eclipse
launcher configuration (Run>Run Configurations...), go to tab Plug-ins,
search for the org.eclipse.equinox.ds bundle (which must be selected
there), and also need to set auto-start to true.
HTH & Greetings from Bremen,
Daniel Krügler
|
|
|
|
Re: Using DS in RCP [message #723403 is a reply to message #699144] |
Thu, 08 September 2011 08:36  |
Eclipse User |
|
|
|
The most common error in this area is that your bundle is not defined to
start lazy!
Tom
Am 21.07.11 01:23, schrieb Timothy Vogel:
> I have a simple DS (adds two number together) built that works in a pure
> Equinox runtime config. It is in a separate bundle and exports only the
> interface.
>
> I am trying to use that working DS in an RCP application. I have the
> component.xml with the DS service as a referenced service. I can not
> get the service instantiated and injected into the RCP variables to use.
>
> Are there any examples of how to configure the RCP application and call
> a DS service?
>
> I've searched both these forums and using Google but have not found any
> samples.
>
> Thanks for taking the time to read my request for help!
> Timothy Vogel
>
|
|
|
Powered by
FUDForum. Page generated in 0.04881 seconds