
Chapter 7 Working with Eclipse
Generating EMF Ecore model
To generate an EMF Ecore model:
- Select Language→Generate Java Code.
- Select the project directory where you want to generate the files. The name of this directory will be used as the project name.
- In the Options tab, verify that the Generate Eclipse Modeling Framework (EMF) Ecore model option is set to True
- Click OK.
Notes
- When you use PowerDesigner Class Diagram to generate EMF Ecore model, the Java classes and Ant build.xml files will not be generated because the EMF Ecore model is used as the logical model of your objects. The Java interfaces and implementation classes will be generated by the EMF code generator from the Ecore model
- If you use interfaces, you should not add the interface operations in the classes that implement the interface because the EMF code generator will add these operations
Copyright (C) 2007. Sybase Inc. All rights reserved.
|
|