Create, edit and run models

1. Description

1.1. Grammar rules of dynamic models

    The syntax rules of dynamic models are basically reflected in the model editor. Once you learn how to create, edit and run models in the model editor, you will basically master the programming method of dynamic models.

1.2. Start directly from the specific model

    Dynamic model programming does not need to start with Hello World. What function you want to achieve, just find the specific model and write it directly. For example, the following example is a window created using SWT's Shell model.

2.Create, edit and run models

2.1. Create a model

    After the model manager is running, in the model manager, you can open the new model window through the right-click menu of the mouse, and select the model you want to create in the new model window.

    For example, in the video below, choose to create an SWT Shell model, and the editing will be opened after the model is created.

2.2. Edit the model

    A model is a tree-structured data consisting of nodes and attributes like XML, so the basic way to edit a model is to write a model node's attribute form, and add and delete model's child nodes.

    The following video demonstrates editing a model's property form, adding child nodes of a model, and more.

2.3. Run the model

    Runable models usually define a run menu, such as the SWT Shell model in this tutorial, which can be run through the menu SWT->Run.


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