简体   繁体   English

RCP或SWT构建eclipse插件

[英]RCP or SWT to build eclipse plugin

I am new to eclipse plugin development. 我是eclipse插件开发的新手。 I want to develop a plugin which will generate XML files from the classes present in the workspace. 我想开发一个插件,该插件将从工作空间中存在的类生成XML文件。 It will have 2-3 UI forms which will take information from user while generating XMLs. 它将具有2-3个UI表单,这些表单将在生成XML时从用户那里获取信息。

From what I have read till now, I think there are two ways by which we can develop plugins 从我到目前为止所读的内容来看,我认为我们可以通过两种方式开发插件

  1. SWT SWT
  2. RPC RPC

I want to know which will be appropriate way to go for me ? 我想知道哪种方法适合我?

Both, they aren't mutually exclusive. 两者都不是互斥的。 SWT is the widget toolkit used in Eclipse, and RCP ("Rich Client Platform") is an application platform based on SWT that is also the foundation of the Eclipse IDE. SWT是Eclipse中使用的小部件工具包,RCP(“ Rich Client Platform”)是基于SWT的应用程序平台,也是Eclipse IDE的基础。

I'd suggest that you start with a project template. 我建议您从项目模板开始。 Get the latest "Eclipse for RCP and RAP developers" package from the Eclipse download site . Eclipse下载站点获得最新的“用于RCP和RAP开发人员的Eclipse ”软件包。 Create a new plug-in project ( File > New > Plug-in Project ), check "This plug-in will make contributions to the UI" on the second page of the wizard, and on the last page, select one of the templates. 创建一个新的插件项目( File> New> Plug-in Project ),在向导的第二页上选中“此插件将为UI做出贡献”,然后在最后一页上,选择一个模板。

You should also have a look at the answers to How to write a plugin for Eclipse? 您还应该看看如何为Eclipse编写插件的答案 to get started. 开始。

Please note that, while this approach still works with Eclipse 4, there are newer APIs to use if you target Eclipse 4 IDEs only. 请注意,尽管该方法仍适用于Eclipse 4,但如果仅以Eclipse 4 IDE为目标,则可以使用更新的API。 For documentation of this approach, see Eclipse 4 RCP (aka E4) documentation . 有关此方法的文档,请参阅Eclipse 4 RCP(aka E4)文档

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

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