Adding mixins to models

Expand the functionality of your working model by adding existing mixins.
Ensure that the published mixin JAR files are in a location that you can access while running NexJ Studio. These files also need to be available later when you deploy the model.
To add mixins to your model:
  1. In the toolbar, click the Set Current Model button .
    The Model Library opens.
  2. In the Models tab, select the working model that you want to expand by adding the mixins.
  3. Click Edit.
    The Properties dialog opens.
  4. Click the Browse button next to the Mixin Models table.
    The Edit Mixin Models dialog opens.
  5. In the list on the left side, select the mixins that contain the resources that you want to incorporate, then click Add.
    The available mixins are added to the list on the right.
  6. Click OK.
    The Edit Mixins Model dialog closes and the mixins added to the list appear in the Mixin Models table.
  7. For each of the mixins that you want to include, ensure that the desired Override option is selected.
    The Override option allows the working model to customize resources of a mixin.
  8. Click OK.
    The Properties dialog closes and returns you to the Model Library.
  9. Click Close to close the Model Library.
Resources from the mixin are now available in the working model. These resources appear with an M on the resource icon, for example, a class looks like this: .
You can now continue development of your working model, incorporating the functionality of the mixin that you have added.