快速业务通道

使用Eclipse富客户端平台和RAD V6创建EJB客户端(二) - 编程入门网

作者 佚名技术 来源 NET编程 浏览 发布时间 2012-06-18
且选择 New => perspective (图 55)。

图 55. 添加扩展

在 Extension Element Details 中,如图 56 所示浏览 perspective 类:

图 56. 扩展元素细节

使用Eclipse富客户端平台和RAD V6创建EJB客户端(二)(11)

时间:2011-03-13 IBM Roland Barcia

更新标识以符合类名(图 57):

图 57. 扩展元素细节

现在扩展应该表现为图 58 所示。通过选择 File => Save 或 Ctrl-S 保存插件配置。

图 58. 添加扩展

换句话说,您可以通过手动直接将它添加到 plug-in.xml 文件中,如清单 8 所示。附加的代码如黑体字所示:

清单 8

<plug-in>    <extension       point="org.eclipse.ui.views">     <category        name="Temperature Category"        id="com.ibm.issw.temperature.form">     </category>     <view        name="Temperature View"        icon="icons/sample.gif"        category="com.ibm.issw.temperature.form"        class="com.ibm.issw.temperature.form.views.TemperatureView"        id="com.ibm.issw.temperature.form.views.TemperatureView">     </view>    </extension>    <extension       point="org.eclipse.core.runtime.applications">     <application>       <run class="TempRCPApplication"/>     </application>    </extension>    <extension       point="org.eclipse.ui.perspectives">     <perspective        class="MyRCPPerspective"        name="com.ibm.issw.temperature.form.perspective1"        id="MyRCPPerspective"/>    </extension> </plug-in>

使用Eclipse富客户端平台和RAD V6创建EJB客户端(二)(12)

时间:2011-03-13 IBM Roland Barcia

测试您的 RCP EJB 客户端

现在我们已经为运行 RCP EJB 客户端做好了准备。我们首先将会从 Application Developer 内部进行 RCP 应用程序的单元测试。接下来我们将会导出插件并且为在开发环境外部运行对其进行设置。

Application Developer 内部测试

关于 Eclipse 3.0 版本,您可以为了运行插件创建 launch configurations。这些 launch configuration 为了使用 WebSphere V6 JRE 需要进行设置(包括了 IBM Application Client for WebSphere Application Server 以及 WebSphere Application Server),通过 Perspective Preferences 进行添加。然而,不是使用 Eclipse,而是我们将会使用Application Developer,其中已经安装了 JRE。

从 Application Developer 的主菜单中选择 Run =>Run...。(图 59)。

图 59. 创建 launch configuration

在 Launch Configuration 向导中选择 Run-time workbench 以及 New (图 60)。

图 60. 创建 launch configuration

使用Eclipse富客户端平台和RAD V6创建EJB客户端(二)(13)

时间:2011-03-13 IBM Roland Barcia

为 MyRCPClient 配置命名。在 Program to Run 部分中,选择您的插件,对于运行应用程序,选择 com.ibm.issw.temperature.form.RcpApplication,对于 JRE,选择 WebSphere v6 JRE(图 61)。

图 61. 创建 launch configuration

对于 VM arguments,通过 C:\RCPEJBClient\Snippet1.txt 所提供的代码(清单 9)输入如图 61 所示代码。

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号