EMF Eclipse Modeling Framewokr
What’s EMF? What s EMF? 2 / 70
How to Work with EMF How to Work with EMF 3 / 70
EMF Toolset EMF Toolset 4 / 70
The ecore Model
What’s ecore ? What s ecore ? 6 / 70
What’s the Purpose of ecore ? What s the Purpose of ecore ? 7 / 70
Some Key ecore Types Some Key ecore Types 8 / 70
Key Concepts in ecore Key Concepts in ecore 9 / 70
ecore Hierarchy ecore Hierarchy 10 / 70
ecore Implementation ecore Implementation 11 / 70
Defining a PIM ( ecore model) Defining a PIM ( ecore model) 12 / 70
Options for Defining an ecore Model Options for Defining an ecore Model 13 / 70
Options for Defining an ecore Model Options for Defining an ecore Model 14 / 70
Music Library Example Music Library Example 15 / 70
Defining a Package Defining a Package 16 / 70
Defining a Class Defining a Class 17 / 70
Definition of an Association Definition of an Association 18 / 70
Definition of Enumerated Types Definition of Enumerated Types 19 / 70
Defining Associations Defining Associations 20 / 70
ecore Reference ecore Reference 21 / 70
Defining ecore using Java – Java Interfaces Annotations Java Interfaces Annotations 22 / 70
Defining a Package/EPackage Defining a Package/EPackage 23 / 70
Defining Classes Defining Classes 24 / 70
Defining Attributes Defining Attributes 25 / 70
Defining Associations Defining Associations 26 / 70
Defining an Enumeration Defining an Enumeration 27 / 70
The Generator Model
The Role of the genmodel The Role of the genmodel 29 / 70
What Must Be Configured? What Must Be Configured? 30 / 70
Relationship Between ecore and genmodel Relationship Between ecore and genmodel 31 / 70
Generation Model Generation Model 32 / 70
What Can Be Configured What Can Be Configured 33 / 70
MetaModel for Configuration MetaModel for Configuration 34 / 70
Code Generation
Code Generation Overview Code Generation Overview 36 / 70
About the Generation Implementation About the Generation Implementation 37 / 70
Plug-ins Created by EMF Plug ins Created by EMF 38 / 70
The EMF.model The EMF.model 39 / 70
EMF.edit EMF.edit 40 / 70
EMF.editor EMF.editor 41 / 70
Can Everything be Generated Can Everything be Generated 42 / 70
How to Change the Generated Code? How to Change the Generated Code? 43 / 70
Integrity of Non-Generated Code Integrity of Non Generated Code 44 / 70
EMF.model
EMF.model EMF.model 46 / 70
Dependencies Dependencies 47 / 70
Implementation of EClass Implementation of EClass 48 / 70
Business Implementation Business Implementation 49 / 70
Framework Generated Implementation Framework Generated Implementation 50 / 70
EObject Interface EObject Interface 51 / 70
Eattribute Implementation Eattribute Implementation 52 / 70
EReference Implementation EReference Implementation 53 / 70
EOperation Implementation EOperation Implementation 54 / 70
Defining the EOperation Defining the EOperation 55 / 70
EMF.edit
Role of EMF.edit Role of EMF.edit 57 / 70
Generator Pattern Generator Pattern 58 / 70
Framework Generator Structure Framework Generator Structure 59 / 70
EMF.edit and Patterns EMF.edit and Patterns 60 / 70
Changing the Label Changing the Label 61 / 70
Label Change Code Label Change Code 62 / 70
Changing the Icon Representation Changing the Icon Representation 63 / 70
Changing Icons in Code Changing Icons in Code 64 / 70
Changing the Image by Code Changing the Image by Code 65 / 70
EMF.editor
Role of EMF.editor Role of EMF.editor 67 / 70
Is It Good Enough? Is It Good Enough? 68 / 70
What’s Generated? What s Generated? 69 / 70
References References � This presentation was adapted from: � Backvanski, V. and Graff, P. “ Mastering Eclipse Model , , g p Framework ”. EclipseCon2005. www.eclipsecon.org/2005/presentations/EclipseCon2005 _Tutorial28.pdf. _ p � Others References � Budinsky, F., Steinberg, D., Merks, E., Ellersick, R., Grose J G “ Eclipse Modeling Framework: A Developer’s Grose, J. G. Eclipse Modeling Framework: A Developer s Guide ”. 2003. � Steinberg, D. “ Fundamentals of the Eclipse Modeling Framework ” 2008 Framework . 2008. www.eclipse.org/modeling/emf/docs/presentations/Eclipse Con/EclipseCon2008_309T_Fundamentals_of_EMF.pdf. 70 / 70
Recommend
More recommend