Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Adding Spring to an existing Eclipse plugin
Adding Spring to an existing Eclipse plugin [message #722567] Tue, 06 September 2011 04:18 Go to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Hello,
I created a modest Eclipse plugin to which I would like to add Spring functionality.
From what I read, I should be using Spring DM (which is now Eclipse Gemini Blueprint) but I'm having a lot of trouble creating a runnable project to which I can add extension functionality.
Anyone know a relevant and up-to-date tutorial on the matter?

Kind of stuck, so I'd appreciate any help.
Thanks,
Roded
Re: Adding Spring to an existing Eclipse plugin [message #723486 is a reply to message #722567] Thu, 08 September 2011 12:31 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
On 9/6/11 4:18 AM, Roded wrote:
> Hello,
> I created a modest Eclipse plugin to which I would like to add Spring
> functionality.
> From what I read, I should be using Spring DM (which is now Eclipse
> Gemini Blueprint) but I'm having a lot of trouble creating a runnable
> project to which I can add extension functionality. Anyone know a
> relevant and up-to-date tutorial on the matter?
> Kind of stuck, so I'd appreciate any help.
> Thanks,
> Roded

I don't know about others, but I don't understand what you're trying to
accomplish or what you've tried. Maybe try explaining in a bit more detail.

Eric
Re: Adding Spring to an existing Eclipse plugin [message #724025 is a reply to message #723486] Sat, 10 September 2011 07:45 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
OK, here goes.
Though before hand, I should mention that I am new to OSGI and Spring development as that might affect the answers.

I created an Eclipse plugin which extends org.eclipse.wst.sse.ui.completionProposal to provide proprietary content assistance on top of WTP's XML Editor.
I'm interested in taking the proposals themselves from the database and for that I would very much like to use our existing Spring usage which is used in the main (jee) application.

After some reading, I understood that I should be using Spring Dynamic Modules (Now Eclipse Gemini Blueprint) which is recommended for Spring usage in an OSGI environment such as an Eclipse plugin. I tried to configure Eclipse PDE to allow me the development and testing of Spring in an plugin environment but that just resulted in an unfortunate bundle mess.. (out with jar hell, in with bundle hell).
The second step was to try to create a Maven project from a Spring OSGI archtype, but that resulted in a repository mess..
I then added SpringDM to a new Eclipse Target Platform and tried running the plugin with it, but I don't really understand yet how that affects a deployment of an Eclipse plugin and whether Spring has to be installed on the platform before hand or is bundled with the Plugin when exported.

I gave up on that front, and simple added Spring (not DM) as jars to my existing plugin. This seems to work for now (i.e. the plugin is actually runnable and seems to be running Spring methods).

Tutorials on the subject are scarce and outdated (could mostly find things from 2006-2008) especially now with Blueprint.

As mentioned at the beginning, I am quite new to this, so if anyone has any pointers or recommended reading material I would really appreciate it.

Many thanks,
Roded
Re: Adding Spring to an existing Eclipse plugin [message #724928 is a reply to message #724025] Tue, 13 September 2011 10:02 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
Even though you are a self-proclaimed "newbie," this is far from a
"newcomers" topic ;-)
I'd suggest asking on either the Equinox or Libra forum groups; they can
both be found on the forums home page, under the section "Eclipse Projects."

Eric


On 9/10/11 7:45 AM, Roded wrote:
> OK, here goes.
> Though before hand, I should mention that I am new to OSGI and Spring
> development as that might affect the answers.
>
> I created an Eclipse plugin which extends
> org.eclipse.wst.sse.ui.completionProposal to provide proprietary content
> assistance on top of WTP's XML Editor.
> I'm interested in taking the proposals themselves from the database and
> for that I would very much like to use our existing Spring usage which
> is used in the main (jee) application.
>
> After some reading, I understood that I should be using Spring Dynamic
> Modules (Now Eclipse Gemini Blueprint) which is recommended for Spring
> usage in an OSGI environment such as an Eclipse plugin. I tried to
> configure Eclipse PDE to allow me the development and testing of Spring
> in an plugin environment but that just resulted in an unfortunate bundle
> mess.. (out with jar hell, in with bundle hell).
> The second step was to try to create a Maven project from a Spring OSGI
> archtype, but that resulted in a repository mess..
> I then added SpringDM to a new Eclipse Target Platform and tried running
> the plugin with it, but I don't really understand yet how that affects a
> deployment of an Eclipse plugin and whether Spring has to be installed
> on the platform before hand or is bundled with the Plugin when exported.
>
> I gave up on that front, and simple added Spring (not DM) as jars to my
> existing plugin. This seems to work for now (i.e. the plugin is actually
> runnable and seems to be running Spring methods).
>
> Tutorials on the subject are scarce and outdated (could mostly find
> things from 2006-2008) especially now with Blueprint.
>
> As mentioned at the beginning, I am quite new to this, so if anyone has
> any pointers or recommended reading material I would really appreciate it.
>
> Many thanks, Roded
Re: Adding Spring to an existing Eclipse plugin [message #725086 is a reply to message #724928] Tue, 13 September 2011 18:09 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Understood..
Thanks.

(Is there perhaps a way to move this thread to a more appropriate forum?)
Re: Adding Spring to an existing Eclipse plugin [message #725369 is a reply to message #725086] Wed, 14 September 2011 11:37 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
I'll move it for you this time, but there's no problem in re-asking a question in a different forum group, as a new message.
Previous Topic:Using DS in RCP
Next Topic:Can't Start Indigo
Goto Forum:
  


Current Time: Thu Jul 24 16:19:04 EDT 2014

Powered by FUDForum. Page generated in 0.01789 seconds