简体   繁体   English

如何用Spring配置Eclipse RCP

[英]How to configure Eclipse RCP with Spring

How can I configure eclipse RCP with spring?如何使用 spring 配置 eclipse RCP? Do I need spring dm ?我需要spring dm吗?

Can you please show me a tutorial on how to configure spring with Eclipse RCP or Eclipse RAP?你能告诉我一个关于如何使用 Eclipse RCP 或 Eclipse RAP 配置 spring 的教程吗?

  1. How can I add spring to Eclipse RCP and just use it?如何将 spring 添加到 Eclipse RCP 并使用它? How can I see the context everywhere?我怎样才能看到处处的上下文?
  2. Do I have to add something to my Target Platform ?我是否必须向我的Target Platform添加一些东西?
  3. Is there any tutorial or can you please tell me more details?有没有教程,或者你能告诉我更多细节吗?

I just want to use Spring with my Eclipse RCP application.我只想将 Spring 与我的 Eclipse RCP 应用程序一起使用。

Using Spring DM is not the only way, but I believe it's the easiest and most complete/correct way of doing it.使用 Spring DM 不是唯一的方法,但我相信这是最简单、最完整/正确的方法。 Prior to Spring DM, there were several projects with the goal of integrating Spring and Eclipse RCP, but none of them were very simple, or very Spring-like.在 Spring DM 之前,有几个项目的目标是集成 Spring 和 Eclipse RCP,但它们都不是很简单,也不是很像 Spring。 I have come across a blogger who is currently writing a series of articles on integrating Spring and Eclipse RCP using Spring DM.我遇到了一个博主,他目前正在写一系列关于使用 Spring DM 集成 Spring 和 Eclipse RCP 的文章。 The first 4 articles cover exactly what you need to know with examples (step 0 through step 3).前 4 篇文章通过示例(步骤 0 到步骤 3)准确地涵盖了您需要了解的内容。

The entire list of articles is here:http://angelozerr.wordpress.com/category/java/spring/spring-dm/完整的文章列表在这里:http://angelozerr.wordpress.com/category/java/spring/spring-dm/

That same blogger talks about his own RCP/RAP project (where he is using Spring DM) in another set of articles.同一位博主在另一组文章中谈到了他自己的 RCP/RAP 项目(他正在使用 Spring DM)。 These are in French, but using Google Translate makes them useful for non-French speakers.这些是法语的,但使用谷歌翻译使它们对非法语人士很有用。 Take a look at step 7 and step 8 here: http://angelozerr.wordpress.com/about/dynaresume/在此处查看第 7 步和第 8 步: http://angelozerr.wordpress.com/about/dynaresume/

I recently wrote a blog about this topic, you can find step-by-step tutorial here: http://blog.novatec-gmbh.de/step-step-spring-eclipse-rcp-applications/我最近写了一篇关于这个主题的博客,你可以在这里找到分步教程: http://blog.novatec-gmbh.de/step-step-spring-eclipse-rcp-applications/

I think my answer might be helpful to anyone (like me) looking for building Spring DM, OSGI console application.我认为我的回答可能对寻求构建 Spring DM、OSGI 控制台应用程序的任何人(如我)有所帮助。

Although its been quite sometime Since Spring DM has been inherited as Gemini Blueprint, it is recommended to use Gemini Blueprint instead of Spring DM.虽然已经有一段时间了 由于Spring DM已经继承为Gemini Blueprint,所以建议使用Gemini Blueprint而不是Spring DM。 Nevertheless, Spring DM is also a good starting point.尽管如此,Spring DM 也是一个很好的起点。

This tutorial is worth looking at: http://www.jroller.com/dbrosius/entry/osgi_spring_dm_w_o It provides step by step information这个教程值得一看: http://www.jroller.com/dbrosius/entry/osgi_spring_dm_w_o它提供了一步一步的信息

NOTE: There is a small package-name typo in Manifest.MF file that needs to be fixed.注意: Manifest.MF 文件中有一个小的包名拼写错误需要修复。 Eclipse will flag it so it's a non-issue Eclipse 将对其进行标记,因此这不是问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM