Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Using DS in RCP
Using DS in RCP [message #699144] Wed, 20 July 2011 23:23 Go to next message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 82
Registered: July 2009
Member
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 #699339 is a reply to message #699144] Thu, 21 July 2011 11:59 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Do you include org.eclipse.equinox.ds in your eclipse OSGi application? Is it started?

PW


Re: Using DS in RCP [message #699498 is a reply to message #699339] Thu, 21 July 2011 16:37 Go to previous messageGo to next message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 82
Registered: July 2009
Member
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.

I have the component.xml pointing to a setter in the Activator class for the RCP project but it is never called.
Re: Using DS in RCP [message #723253 is a reply to message #699498] Thu, 08 September 2011 07:14 Go to previous messageGo to next message
Eclipse UserFriend
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 #723372 is a reply to message #723253] Thu, 08 September 2011 12:31 Go to previous messageGo to next message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 82
Registered: July 2009
Member
Daniel,
Thanks for your reply!

I will try this approach.
Re: Using DS in RCP [message #723403 is a reply to message #699144] Thu, 08 September 2011 12:36 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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
>
Previous Topic:Weired thread names in OSX Lion
Next Topic:Adding Spring to an existing Eclipse plugin
Goto Forum:
  


Current Time: Sat Sep 21 13:50:54 GMT 2024

Powered by FUDForum. Page generated in 0.04116 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top