Eclipse RCP terminologies and concepts

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:45:28

问题


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.


回答1:


Take a look at the JavaDoc for the Interfaces, they are well documented and give you an idea of the terminology. For example:

What is a page?

Look at the Javadoc at org.eclipse.ui.IWorkbenchPage

called getSite(),

Look at the Javadoc at org.eclipse.ui.IViewSite




回答2:


You may want to check this as well:



来源:https://stackoverflow.com/questions/5564248/eclipse-rcp-terminologies-and-concepts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!