Step 1: Import EMF plug-ins to the relevant directories (plugins, features)
Step 2: Create an EMF project. <! -- More -->
Step 3: enter the name of the generated project
Step 4: Import XSD and modify the corresponding name:
Step 5: Click Finish to configure ecore-related attributes and click Save.
Step 6: Configure genmodel attributes
Select its root directory:
We need to configure the following attributes:
ALL:
Compiance level (compilation level): 1.5
Copyright text
Model class defaults:
Public constuctors: Public (recommended), which is protected by default.
Select its second-level directory
Configure the following attributes:
ALL:
Base package: your own default start package name (for example, org. Eclipse)
Prefix: Model
Step 7: generate a model
Note: This article is just a reference demonstration based on our project. It is not suitable for all situations. You can modify the attributes as needed!
This article is original at eclipselight.org.Article, Reprinted, please indicate the source.
Fixed Link: http://www.eclipselight.org/java/235/