Create, edit and run models

1. The model is predefined directly or indirectly

    This is the theoretical basis of the model editor.

    The model editor can be realized by discovering the metamodel. The metamodel can be used to edit various class models. After the class model is available, it can be used to edit various object models, and the metamodel can be used to edit itself. Their editing methods are the same.

    For example, if you want to write an object of type Pegasus, but the Pegasus class model does not exist. At this time, you can use the metamodel to create and edit Pegasus, and with Pegasus, you can edit specific Pegasus objects.

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 XWorker.org  版权所有  沪ICP备08000575号