How to master the best practices of experts and improve your model-driven development progress
Introduction: Creating Templates to make best practices code (that is, generating artifacts) is a powerful concept that saves you countless times and reduces tedious coding. This article describes the code generation framework JET, which is an Eclipse technology project.
Code generation is not a new concept. It has been there for some time, and as a way to increase productivity, it has become popular with the development of model-driven development (MDD). The Eclipse project has a technical project called JET that is a specialized code generator. What JET can generate is more than just "code", anyway, in this article we call these Artifiact objects as artifacts.
Begin
In this section, we'll cover the basics of Jet project setup, discuss the structure of the Jet project, and then run a quick transition.
Create a JET Project
Before we actually touch JET, we need to create a project. Implemented using the standard Eclipse method that creates the project. For JET, use command File > New > Other > Emft jet Transformations > EMFT Jet transformation Project (see Figure 1) to create a EMFT JET transformation Project.
Figure 1. JET Project Wizard
JET Project Structure