Eclipse的RCP

从Eclipse 3.1RC1开始,ve已经支持RCP(Rich Client Platform)开发了。
个人理解RCP就是由Plugin开发转向桌面应用开发,可以构建最小化的Eclipse平台(8M-)运行你的桌面应用,不必再为程序框架烦心,摆脱失败的awt和swing,让程序拥有专业级效果,程序实现又很简单很优雅。:D

一些RCP的资料,来自Eclipse

◎Exporting an RCP Application:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde-build-home/articles/export%20rcp%20apps/article.html

◎Developing for the Rich Client Platform
http://www.eclipsecon.org/2005/presentations/EclipseCon2005_Tutorial26.pdf

◎Eclipse Rich Client Platform FAQ 该页面上可以找到很多RCP文档链接
http://dev.eclipse.org/viewcvs/index.cgi/platform-ui-home/rcp/faq.html?rev=1.7

◎RCP的一些项目
http://eclipse.org/community/rcp.html

◎一点说明:
在Rich Client Tutorial Part 1一文中关于RCP的目录结构有一处错误:
Java代码
RcpTutorial1  
|    startup.jar  
+--- plugins  
      +--- org.eclipse.core.expressions_3.0.0 
      +--- org.eclipse.core.runtime_3.0.0 
      +--- org.eclipse.help_3.0.0 
      +--- org.eclipse.jface_3.0.0 
      +--- org.eclipse.osgi_3.0.0 
      +--- org.eclipse.swt.win32_3.0.0 
      +--- org.eclipse.swt_3.0.0 
      +--- org.eclipse.ui.tutorials.rcp.part1_0.0.0 
      +--- org.eclipse.ui.workbench_3.0.0 
      +--- org.eclipse.ui_3.0.0 
      +--- org.eclipse.update.configurator_3.0.0 

   RcpTutorial1
    |    startup.jar
    +--- plugins
         +--- org.eclipse.core.expressions_3.0.0
         +--- org.eclipse.core.runtime_3.0.0
         +--- org.eclipse.help_3.0.0
         +--- org.eclipse.jface_3.0.0
         +--- org.eclipse.osgi_3.0.0
         +--- org.eclipse.swt.win32_3.0.0
         +--- org.eclipse.swt_3.0.0
         +--- org.eclipse.ui.tutorials.rcp.part1_0.0.0
         +--- org.eclipse.ui.workbench_3.0.0
         +--- org.eclipse.ui_3.0.0
         +--- org.eclipse.update.configurator_3.0.0
需要在configuration目录下下添加config.ini(从你的eclipse configuration目录下面拷贝一个过去。以上支撑环境在plugins目录下均有jar包。)
Java代码
+--- configuration  
     +--- config.ini 

    +--- configuration
         +--- config.ini

关于cmd文件的说明:
Java代码
echo on  
setlocal  
cd %~dp0  
start javaw -cp startup.jar org.eclipse.core.launcher.Main  
   -application org.eclipse.ui.tutorials.rcp.part1.RcpApplication %*  
endlocal 

   echo on
   setlocal
   cd %~dp0
   start javaw -cp startup.jar org.eclipse.core.launcher.Main
      -application org.eclipse.ui.tutorials.rcp.part1.RcpApplication %*
   endlocal


其中application参数缺省状态下(plugin.xml中不定义application节点)为 "项目名"+"."+"application",注意大小写,并且这里的application不是class名。

你可能感兴趣的:(eclipse,UI,swing,cgi,osgi)