Step 1: Creating a Class Diagram

Previous topic
Previous
Next topic
Next

This task takes you through the steps required to create a class model from within JDeveloper.

To create a class diagram:

  1. Select OrderEntry.jpr in the Navigator and create the class model by invoking the New... dialog: choose File | New.
  2. In the New Gallery, select General | UML Diagrams in the Categories pane, and Class Diagram in the Items pane.
  3. In the Create New Class Diagram dialog, change the package name to orderEntry, and the Name to OEClassDiagram.
  4. By default, Java is generated automatically for modeled classes and interfaces on a class diagram. You will be generating the Java for the diagram later in this tutorial, so choose Model | Generate | Automatically Generate Java if the Automatically Generate Java item has a check mark next to it.

    You can choose to display the Component Palette as just icons, or as icons with a description. Toggle between these by selecting either Icon View or List View from the Component Palette context menu.

    The Structure pane also shows information about the contents of the class diagram. This can be useful if, for example, you want to see quickly how many classes there are in a diagram and what their names are.

Now that you have created the class diagram, you are ready to proceed to the next task, Step 2 - Modeling Java Classes, which shows you how to model Java classes on the class diagram you have created.