搭配使用平台整合與 Eclipse
搭配使用平台整合與 Eclipse 時,標準
Rational® Rhapsody®
元素(例如瀏覽器、圖表顯示區域和輸出視窗)顯示在 Eclipse 使用者介面。這些使用者介面元素可如 Eclipse 中的任何其他外掛程式一樣操作。當使用平台整合時,幾乎所有 Rhapsody 的特性都可用,但是有一些例外。某些
Rational Rhapsody
功能的存取方式在 Eclipse 與在 Rhapsody 獨立式版本中略有差異,但是這些差異相當直觀。
平台整合需求
針對 Eclipse 平台與
IBM Rational Rhapsody
整合,存在各種軟體需求及授權需求。
Eclipse 中的 Rational Rhapsody 視景
Eclipse 中顯示的標準
IBM Rational Rhapsody
介面元素具有與獨立式版本相同的特性,不同之處在於與特定視窗相關聯的圖示在視窗的頂端顯示。
Eclipse Platform Integration 支援附加程式工具
IBM Rational Rhapsody
的 Eclipse Platform Integration 支援附加程式配置管理工具及 XMI 檔案匯入和匯出功能。
在 Eclipse 中建立 Rational Rhapsody 專案
您可以在 Eclipse 中,使用標準的 Eclipse「新建專案」視窗,建立新的
Rational Rhapsody
專案。
在 Eclipse Platform Integration 中建立圖表
您可以使用
IBM Rational Rhapsody
Platform Integration 建立 Eclipse 圖表。
在 Eclipse 中開啟 Rational Rhapsody 專案
新增 Rational Rhapsody 模型元素
使用 Eclipse 中的「Rhapsody 建模」視景,您可以使用模型瀏覽器的蹦現功能表來將元素新增至模型。
過濾 Rational Rhapsody 檔案類型
您可以防止 Eclipse 在新增檔案時呈現不必要的
Rational Rhapsody
專案檔類型。
將 Rational Rhapsody 專案匯入 Eclipse
除了能夠在
IBM Rational Rhapsody
Platform Integration 中建立專案,您還可以匯入現有的
Rational Rhapsody
專案。
將 Eclipse 原始碼匯出至 Rational Rhapsody 專案
匯入原始碼(反向工程)
匯入 Rational Rhapsody 單元
您可以使用標準的 Eclipse「匯入」視窗,將個別
Rational Rhapsody
單元匯入至現有的
Rational Rhapsody
專案中。匯入單元時,可以選取類似如下的選項:
作為參照
、
新增子單元
和
新增相依項
。
在模型中搜尋及取代
IBM Rational Rhapsody
搜尋機能可在 Eclipse 中用於各種作業。
檢查模型
若要啟動檢查模型處理程序,請使用下列其中一個方法:
在 Eclipse 中產生程式碼
您可以使用 Eclipse 機能檢查模型、產生程式碼及編輯結果程式碼。
在模型與程式碼之間進行同步化
IBM Rational Rhapsody
可讓您在模型或程式碼中工作,並在每一個模型或程式碼之間維護同步化,讓在其中某個項目的變更內容可自動反映到其他項目。 這稱為「動態模型程式碼關聯性 (DMCA)」
使用 Eclipse 編輯器編輯程式碼
如果您要編輯特定模型元素的程式碼,則可以在模型瀏覽器中選取元素,然後從蹦現功能表中選取「編輯程式碼」。取得相關程式碼的另一種方法是在圖表上選取元素,然後從蹦現功能表中選取「編輯程式碼」。
建置 Eclipse 專案
檢查模型並產生程式碼之後,您可以建置專案。
除錯 Eclipse 專案
建置專案之後,您可以對
IBM Rational Rhapsody
除錯視景使用 Eclipse 除錯機能。 選擇
執行
功能表,然後選擇通常在 Eclipse 中使用的除錯工具。
使用 Eclipse 3.6 Platform Integration 除錯
依預設,Eclipse 3.6 使用 GDB 通訊協定。 目前,
Rational Rhapsody
僅支援標準除錯器。
Eclipse 中 Rational Rhapsody 應用程式的動畫
執行動畫
IBM Rational Rhapsody
應用程式時, Eclipse 會切換至
Rational Rhapsody
除錯視景。 您可以使用
Rational Rhapsody
動畫功能及 Eclipse 除錯工具除錯動畫應用程式。
Eclipse 中的模型開發
IBM Rational Rhapsody
Eclipse 外掛程式將模型整合在 Eclipse 環境中,可讓軟體開發人員獲益於在相同的開發環境中工作,從而簡化他們的工作流程。
產生 Rational Rhapsody 報告
若要透過模型產生報告,請使用
IBM Rational Rhapsody ReporterPLUS
說明文件工具以建立 Microsoft Word、Microsoft PowerPoint、HTML、 RTF 及文字文件。
Rational Rhapsody ReporterPLUS
預先定義範本會從模型擷取文字及圖表、在文件中安排文字及圖表以及格式化文件。
自動建立 Eclipse 專案
使用與 Eclipse 的工作流程整合時,可以自動建立 Eclipse 專案,而不是使用「Rhapsody 配置精靈」來建立這些專案。
上層主題:
整合 Rational Rhapsody 及 Eclipse
意見回饋