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:
-
In the toolbar, click the Set Current
Model button .
The Model Library opens.
-
In the Models tab, select the working
model that you want to expand by adding the mixins.
-
Click Edit.
The Properties dialog
opens.
-
Click the Browse button next to the Mixin Models table.
The Edit Mixin Models dialog
opens.
-
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.
-
Click OK.
The Edit Mixins Model dialog closes
and the mixins added to the list appear in the Mixin Models table.
-
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.
-
Click OK.
The Properties dialog closes and
returns you to the Model Library.
-
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.