Template Editor

After explaining how to utilize Template Editor by creating custom templates, let's delve into using the Template Editor with the templates integrated into MSAEZ.

Open the code preview of the completed model.

Click the 'Base' button on the left to choose a template integrated into MSAEZ. In this example, the spring-boot template is selected.

Click the 'Edit Template' icon in the top-left to access the Template Editor.

Choosing Template Files:

To modify the selected template's code, you need to choose the template file.

In the Template Editor's left 'Template Explorer,' navigate to the folder and file of the chosen template.

Selecting a template file updates the code displayed in the 'EDIT TEMPLATE' section.

Editing Template Code:

You can see the template code for Aggregate.java, which you selected in the previous step of choosing a template file, displayed in the 'EDIT TEMPLATE' section.

Now, in this area, you can modify the template code as desired.

Next, using the 'Model Explorer' on the left, let's refer to it to add {{keyFieldDescriptor.name}} data inside the class.

As shown in the image above, after adding data inside the class, click the execute button in the top right. This will show the changed result based on the code declared in the 'EDIT TEMPLATE' section.

Check Edited File

If you modify the code in 'EDIT TEMPLATE' and proceed with the conversion, you can confirm the converted results in the right section as shown in the example below.

Here, you can check the 'selected file' in the top right, which indicates the types of files converted for each sticker modeled.

In this example, files for the Aggregate stickers Order and Delivery created during the modeling phase have been generated.

By selecting a file, you can examine the converted code for the chosen file, allowing you to verify the results for each file.

Applying Changes to Modified Files

After going through the previous steps to modify the template, you can create a new template repository or update an existing template repository using the modified template.

First, select the template you modified in 'Edited Template Files' at the bottom left.

Then, scroll to the right, where you'll find the 'open git Menu' icon.

Click the icon, as shown in the image above, allows you to create it in your GitHub account repository. After renaming the repository according to your purpose, clicking 'Create' will generate the GitHub repository with the specified name.

uEngine has registered trademarks and uses trademarks. and MSA-Ez is licensed under the GNU General Public License version 3.0.