Eclipse RCP 术语和概念
我刚刚开始使用 Eclipse RCP 开发一些应用程序。通过阅读一些教程,我能够制作出一个原型。虽然我能够编写出一些工作代码,但我发现自己对一些 RCP 概念感到不安,例如:
- 什么是页面?我看到很多 getActivePage() API 调用,所以我假设可以有多个页面,对吗?
- 在 IWorkbechPart API 中有一个名为 getSite() 的 API,它被经常使用,但我不确定什么是“站点”
以上只是我遇到的问题的一个示例,所以如果有人可以向我指出一些解释此类概念的文章(我用谷歌搜索但没有成功)。
如果有人能向我指出一些可以指导我如何编写干净的 RCP 代码的文章,我也将不胜感激;有点像 RCP 的“Effective Java”。
I am just starting to develop some application using Eclipse RCP. I was able to hack out a prototype by reading some tutorials. Although I was able to hack out some working code, I found myself shaky on some of the RCP concepts like:
- What is a page? I see a lot of getActivePage() API calls, so I am assuming there can be multiple pages am I correct?
- In the IWorkbechPart API there is an API called getSite(), which is being use a lot, but I am not sure what is a "site"
The above are just a sample of questions I am having, so it would really help me if someone can point me to some articles explain these type of concepts (I did google around without success).
I would also appreciate it if someone can point me to some articles that can educate me on how to write clean RCP code; kind of like the "Effective Java" for RCP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要检查一下 还有:
You may want to check this as well:
查看接口的 JavaDoc,它们有详细的文档记录,可以让您了解术语。例如:
查看位于
org.eclipse.ui.IWorkbenchPage
的 Javadoc请查看
org.eclipse.ui.IViewSite
中的 JavadocTake a look at the JavaDoc for the Interfaces, they are well documented and give you an idea of the terminology. For example:
Look at the Javadoc at
org.eclipse.ui.IWorkbenchPage
Look at the Javadoc at
org.eclipse.ui.IViewSite