Adding nested classes

You can enclose a class in an existing class.

About this task

You can add a new class in an existing class to create a nested class.

Procedure

To add a nested class:

  1. In the Rule Explorer view, double-click the BOM entry in the bom folder.

    The Package tab of the BOM Editor displays the list of packages and classes in your BOM entry.

  2. Click New Class.
  3. In the New BOM Class wizard, select the Enclosing class box and then click Browse to select the enclosing class.
  4. In the Name field, specify the name of the class you want to create.
  5. Click Finish.

Results

The new class is added as a nested class.