第一个 Rcp 程序 <?XML:NAMESPACE PREFIX = O />
新建 ->project->plug-in Development->plug-in project
<?XML:NAMESPACE PREFIX = V /><shapetype id="_x0000_t75" stroked="f" filled="f" path=" m@4@5 l@4@11@9@11@9@5 xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0 "></f><f eqn="sum @0 1 0 "></f><f eqn="sum 0 0 @1 "></f><f eqn="prod @2 1 2 "></f><f eqn="prod @3 21600 pixelWidth "></f><f eqn="prod @3 21600 pixelHeight "></f><f eqn="sum @0 0 1 "></f><f eqn="prod @6 1 2 "></f><f eqn="prod @7 21600 pixelWidth "></f><f eqn="sum @8 21600 0 "></f><f eqn="prod @7 21600 pixelHeight "></f><f eqn="sum @10 21600 0 "></f></formulas><path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></path><lock aspectratio="t" v:ext="edit"></lock></shapetype><shape id="_x0000_i1025" style="WIDTH: 375pt; HEIGHT: 375pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image001.png"><img height="500" alt="image001.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image001.png" width="500" border="0"></imagedata></shape>
点击 next
<shape id="_x0000_i1026" style="WIDTH: 375pt; HEIGHT: 375pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image003.png"><img height="500" alt="image003.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image003.png" width="500" border="0"></imagedata></shape>
输入工程名 HelloRcp à next
<shape id="_x0000_i1027" style="WIDTH: 375pt; HEIGHT: 375pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image005.png"><img height="500" alt="image005.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image005.png" width="500" border="0"></imagedata></shape>
<textbox style="MARGIN-TOP: 1.781pt; LEFT: auto; MARGIN-LEFT: 6.968pt; WIDTH: 338.562pt; TOP: auto; HEIGHT: 33.875pt" inset="5.85pt,.7pt,5.85pt,.7pt"></textbox>其它采取默认,Rich Client Application部分选择 yes
<shape id="_x0000_i1028" style="WIDTH: 375pt; HEIGHT: 375pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image008.png"><img height="500" alt="image008.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image008.png" width="500" border="0"></imagedata></shape>
选择 Hello Rcp à Finish
工程建立完毕,下边选择 MANIFEST.MF
<shape id="_x0000_i1029" style="WIDTH: 424.5pt; HEIGHT: 280.5pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image010.png"><img height="458" alt="image010.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image010.png" width="694" border="0"></imagedata></shape>
点击下边的 overview 进入 overview 视图,点击 Launch an Eclipse application
就可以看到运行起来的界面了。就使一个简单的窗口。
好,下边如何导出能类似 Eclipse 的程序
在 HelloRcp 工程上点击右键 à new à other
<shape id="_x0000_i1030" style="WIDTH: 375pt; HEIGHT: 375pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image012.png"><img height="500" alt="image012.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image012.png" width="500" border="0"></imagedata></shape>
选择 Product Configuration
<shape id="_x0000_i1031" style="WIDTH: 375pt; HEIGHT: 480pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image014.png"><img height="640" alt="image014.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image014.png" width="500" border="0"></imagedata></shape>
<textbox style="MARGIN-TOP: 1.781pt; LEFT: auto; MARGIN-LEFT: 6.968pt; WIDTH: 347.562pt; TOP: auto; HEIGHT: 15.875pt" inset="5.85pt,.7pt,5.85pt,.7pt"></textbox>在划线部分填入 helloRcp , Finish
<textbox style="MARGIN-TOP: 1.75pt; LEFT: auto; MARGIN-LEFT: 6.968pt; WIDTH: 167.562pt; TOP: auto; HEIGHT: 33.875pt" inset="5.85pt,.7pt,5.85pt,.7pt"></textbox><shape id="_x0000_i1032" style="WIDTH: 424.5pt; HEIGHT: 280.5pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata o:title="" src="%E6%96%B0%E8%A6%8FMicrosoft%20Word%20%E6%96%87%E6%9B%B8.files/image018.png"><img height="459" alt="image018.png" src="http://www.blogjava.net/images/blogjava_net/dreamstone/image018.png" width="695" border="0"></imagedata></shape>
在三处分辨填入对应的内容,然後点击 Configuration 进入 configuration 视图
add à 选择 HelloRcp
点击 Add Required Plug-ins
然後点击划线部分,按照向导,导出成一个 Exe 工程。双击运行一下看看吧。
另外导出的这个工程和 eclipse 一样,比如语言啦 -nl 参数,比如 jre 的设置啦 -vm
最大最小内存了,都和 eclipse 是一样的。
好了,这个就是一个工程的过程。前两篇文章内容很少,都是配制方面的,下边的文章开始真的多一些内容了。