使用
Rational Rhapsody
工作流程与 Eclipse 的集成
与 Eclipse 的工作流程集成使您能够将
Rational® Rhapsody®
模型与 Eclipse 项目链接。您可以将该模型链接到新的 Eclipse 项目或将现有 Eclipse 项目导入到
Rational Rhapsody
。 将这两个项目链接后,您可以在 Rational Rhapsody 中添加模型元素并在 Eclipse 中为它们生成代码,或在 Eclipse 中写入代码并将已修改的代码回传到
Rational Rhapsody
模型中。
将 Eclipse 项目导入 Rational Rhapsody 中
IBM Rational Rhapsody
使您可以轻松快速地导入 Eclipse 项目。 导入 Eclipse 项目时,将对该项目中包含的所有元素进行反向工程并将这些元素添加为模型元素。 导入的元素将添加到一个与原始 Eclipse 项目同名的新包中。
创建 Eclipse 配置
要将 Eclipse IDE 与现有
Rational Rhapsody
模型配合使用,您必须在模型中创建 Eclipse 配置,然后在 Eclipse 中使用 Rhapsody 项目向导来指定设置(例如,将 Eclipse 项目与
Rational Rhapsody
模型关联)。
打开现有 Eclipse 配置
如果模型中的活动配置是 Eclipse 配置,您可以使用主菜单中的“打开 IDE...”选项来打开 Eclipse 中关联的项目。
将 Rational Rhapsody 与 Workbench 3.0 配合使用
如果您正在将
Rational Rhapsody
与 Wind River Workbench 3.0 (VxWorks 6.6) 配合使用,请进行下列变更:
Eclipse 配置的 Rational Rhapsody 标记
配置用于 Eclipse 的 Rational Rhapsody
可使用“功能部件”窗口微调
Rational Rhapsody
模型中 Eclipse 配置的设置。您可以使用该窗口的 IDE 选项卡上的选项执行下列操作:1) 指定哪些程序应构建应用程序(Eclipse 或
Rational Rhapsody
)2) 指定对构建设置(如模型中与 make 相关的属性)进行更改后是否应更新 Eclipse 中的构建设置 3) 指定 Eclipse 调试器是否应与动画功能组件配合使用
Eclipse 工作台属性
使用 Eclipse 编辑 Rational Rhapsody 代码
建立
Rational Rhapsody
模型和 Eclipse 项目之间的关联后,您可以使用
Rational Rhapsody
浏览器中的弹出菜单打开在 Eclipse 中要编辑的元素的代码。
在 Eclipse 中查找实现代码
建立
Rational Rhapsody
模型和 Eclipse 项目之间的关联后,您可以使用
Rational Rhapsody
浏览器中的弹出菜单在 Eclipse 中查找模型元素。
使用 Rational Rhapsody 对 Eclipse 安装进行故障诊断
如果与 Eclipse 的工作流程集成未按预期运行,那么有许多设置需要您进行检查。
在 Eclipse 与 Wind River Workbench 之间切换
您可以使用 rhapsody.ini 文件 [IDE] 部分中的 EclipsePath 属性来确定在使用
Rational Rhapsody
工作流程集成时应启动的 Eclipse 的版本。您可以修改此属性的值以在 Eclipse 和 WindRiver Workbench 之间切换,或在已安装的 Eclipse 的多个版本之间切换。
解除 Eclipse 项目与 Rational Rhapsody 的关联
您可以从 Eclipse 或
Rational Rhapsody
中除去
Rational Rhapsody
模型与 Eclipse 项目之间的关联。
父主题:
将 Rational Rhapsody 与 Eclipse 集成
反馈