Importing an existing Android application into Rational Rhapsody

When you have an existing Android project in Eclipse, you can import your code files into IBM® Rational® Rhapsody® to allow visualization of your current application and the addition of new model elements.

Before you begin

These steps assume that you have installed the Rational Rhapsody plug-ins for Eclipse that allow you to use Rational Rhapsody's modeling features within Eclipse.

Procedure

  1. Create a new Rational Rhapsody Java project in Eclipse, or select an existing Rational Rhapsody Java project in Eclipse and make it the active project.
  2. Select the Android project you would like to import into Rational Rhapsody.
  3. Open the pop-up menu for the Android project, and select Export...
  4. In the Export window, select Rhapsody Model and then click Next. The Export to Rhapsody Model window is displayed.
  5. Click Finish. The Android project is now associated with the Rational Rhapsody project and all code files have been imported into the Rational Rhapsody model. In addition to the elements representing your code files, the Rational Rhapsody model contains:
    • A component with the AndroidComponent stereotype
    • Visualization of the Android library including an object model diagram
      Note: To save loading time, only some of the Android library information is loaded. To view the details for a class marked with a (U), select Load from the pop-up menu.
    • The AndroidProfile profile

Feedback