Eclipse RCP中文入门教程:从零开始构建插件

需积分: 50 2 下载量 99 浏览量 更新于2024-07-24 收藏 1.06MB PDF 举报
"Eclipse RCP中文入门教程,由赵阳于2005.12.26撰写,旨在引导初学者了解如何构建基于Eclipse Rich Client Platform (RCP)的应用程序。教程通过一个简单的插件工程实例,逐步讲解了RCP应用的创建过程。 在Eclipse中创建RCP插件工程的第一步是启动Eclipse并新建一个插件项目。通过File > New > Project > Plug-in Development > Plug-in Project路径进入插件工程创建向导。在向导中,需要填写项目名称(如simplebrowser),并勾选"Create an OSGi bundle manifest",以便利用OSGi标准进行动态插件加载。OSGi是Eclipse 3.0及以上版本支持的技术,在Eclipse 2.1中并非必需。 接下来,确认Plug-in ID及其他插件属性值,尤其在"RichClientApplication"选项中选择"Yes",表明我们要创建的是一个RCP应用。然后,选择最基本的HelloRcp模板,点击"Finish",Eclipse会自动生成一个简单的RCP应用,并打开插件清单编辑器的主页面,这里可以进行应用配置,避免手动编写配置文件。 在插件清单编辑器的Overview页面,点击“Launch an Eclipse application”链接,可以预览RCP应用的运行效果。完成这些步骤后,Eclipse会自动生成包括Application类和ApplicationAction在内的基本结构,这些都是构建RCP应用的基础组件。 RCP应用的核心特点是它可以脱离Eclipse IDE独立运行,且具有高度可扩展性和模块化。通过RCP,开发者可以构建功能丰富的桌面应用程序,利用Eclipse强大的插件体系实现定制化功能。在实际开发中,开发者可以继续添加视图、透视图、命令、服务等组件,丰富应用的功能和交互体验。 本教程的后续部分可能涵盖如何添加视图、编辑器、菜单和工具栏,以及如何调试和打包RCP应用等内容。通过学习和实践,读者能够掌握Eclipse RCP的基本开发流程和技巧,从而能够构建自己的桌面应用程序。"

org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find jre:jre:zip:call:1.0.0-SNAPSHOT in http://download.eclipse.org/recommenders/models/oxygen/ was cached in the local repository, resolution will not be reattempted until the update interval of models has elapsed or updates are forced at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:232) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:303) at org.eclipse.recommenders.models.ModelRepository.resolveInternal(ModelRepository.java:193) at org.eclipse.recommenders.models.ModelRepository.resolve(ModelRepository.java:172) at org.eclipse.recommenders.internal.models.rcp.EclipseModelRepository.resolve(EclipseModelRepository.java:168) at org.eclipse.recommenders.internal.models.rcp.DownloadModelArchiveJob.run(DownloadModelArchiveJob.java:76) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find jre:jre:zip:call:1.0.0-SNAPSHOT in http://download.eclipse.org/recommenders/models/oxygen/ was cached in the local repository, resolution will not be reattempted until the update interval of models has elapsed or updates are forced at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:240) at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:215) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:594) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:512) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430) ... 8 more

2023-07-12 上传