View actions and behaviours

1.Viewing Behavior in Model Relational Interface

    To execute a model is to execute its behavior. In the following figure, the list of actions in the description and inheritance interface shows the list of actions of the model. When selected, the action can be opened.

2.Find the code for the action to execute

2.1.JavaAction

    The JavaAction shown in the figure below executes the createDialog static method of the xworker.swt. idgets. hellCreator class.

2.2.GroovyAction

    Groovy is a scripting language that is widely used in dynamic models, as you can see in the following figure.

2.3.Non-code actions

   Some actions are not written in scripting languages like Java or Groovy, so you can continue to find the final Java Action or Groovy Action by looking for their run methods.

    The If action shown below is not Java or Groovy in itself, but its run method is written in Java.

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号