EMF Eclipse Modeling Framewokr Whats EMF? What s EMF? 2 / 70 How - - PowerPoint PPT Presentation

emf
SMART_READER_LITE
LIVE PREVIEW

EMF Eclipse Modeling Framewokr Whats EMF? What s EMF? 2 / 70 How - - PowerPoint PPT Presentation

EMF Eclipse Modeling Framewokr Whats 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 Whats ecore ? What s ecore ? 6 / 70 Whats the Purpose of ecore ? What s


slide-1
SLIDE 1

EMF

Eclipse Modeling Framewokr

slide-2
SLIDE 2

What’s EMF? What s EMF?

2 / 70

slide-3
SLIDE 3

How to Work with EMF How to Work with EMF

3 / 70

slide-4
SLIDE 4

EMF Toolset EMF Toolset

4 / 70

slide-5
SLIDE 5

The ecore Model

slide-6
SLIDE 6

What’s ecore? What s ecore?

6 / 70

slide-7
SLIDE 7

What’s the Purpose of ecore? What s the Purpose of ecore?

7 / 70

slide-8
SLIDE 8

Some Key ecore Types Some Key ecore Types

8 / 70

slide-9
SLIDE 9

Key Concepts in ecore Key Concepts in ecore

9 / 70

slide-10
SLIDE 10

ecore Hierarchy ecore Hierarchy

10 / 70

slide-11
SLIDE 11

ecore Implementation ecore Implementation

11 / 70

slide-12
SLIDE 12

Defining a PIM (ecore model) Defining a PIM (ecore model)

12 / 70

slide-13
SLIDE 13

Options for Defining an ecore Model Options for Defining an ecore Model

13 / 70

slide-14
SLIDE 14

Options for Defining an ecore Model Options for Defining an ecore Model

14 / 70

slide-15
SLIDE 15

Music Library Example Music Library Example

15 / 70

slide-16
SLIDE 16

Defining a Package Defining a Package

16 / 70

slide-17
SLIDE 17

Defining a Class Defining a Class

17 / 70

slide-18
SLIDE 18

Definition of an Association Definition of an Association

18 / 70

slide-19
SLIDE 19

Definition of Enumerated Types Definition of Enumerated Types

19 / 70

slide-20
SLIDE 20

Defining Associations Defining Associations

20 / 70

slide-21
SLIDE 21

ecore Reference ecore Reference

21 / 70

slide-22
SLIDE 22

Defining ecore using Java – Java Interfaces Annotations Java Interfaces Annotations

22 / 70

slide-23
SLIDE 23

Defining a Package/EPackage Defining a Package/EPackage

23 / 70

slide-24
SLIDE 24

Defining Classes Defining Classes

24 / 70

slide-25
SLIDE 25

Defining Attributes Defining Attributes

25 / 70

slide-26
SLIDE 26

Defining Associations Defining Associations

26 / 70

slide-27
SLIDE 27

Defining an Enumeration Defining an Enumeration

27 / 70

slide-28
SLIDE 28

The Generator Model

slide-29
SLIDE 29

The Role of the genmodel The Role of the genmodel

29 / 70

slide-30
SLIDE 30

What Must Be Configured? What Must Be Configured?

30 / 70

slide-31
SLIDE 31

Relationship Between ecore and genmodel Relationship Between ecore and genmodel

31 / 70

slide-32
SLIDE 32

Generation Model Generation Model

32 / 70

slide-33
SLIDE 33

What Can Be Configured What Can Be Configured

33 / 70

slide-34
SLIDE 34

MetaModel for Configuration MetaModel for Configuration

34 / 70

slide-35
SLIDE 35

Code Generation

slide-36
SLIDE 36

Code Generation Overview Code Generation Overview

36 / 70

slide-37
SLIDE 37

About the Generation Implementation About the Generation Implementation

37 / 70

slide-38
SLIDE 38

Plug-ins Created by EMF Plug ins Created by EMF

38 / 70

slide-39
SLIDE 39

The EMF.model The EMF.model

39 / 70

slide-40
SLIDE 40

EMF.edit EMF.edit

40 / 70

slide-41
SLIDE 41

EMF.editor EMF.editor

41 / 70

slide-42
SLIDE 42

Can Everything be Generated Can Everything be Generated

42 / 70

slide-43
SLIDE 43

How to Change the Generated Code? How to Change the Generated Code?

43 / 70

slide-44
SLIDE 44

Integrity of Non-Generated Code Integrity of Non Generated Code

44 / 70

slide-45
SLIDE 45

EMF.model

slide-46
SLIDE 46

EMF.model EMF.model

46 / 70

slide-47
SLIDE 47

Dependencies Dependencies

47 / 70

slide-48
SLIDE 48

Implementation of EClass Implementation of EClass

48 / 70

slide-49
SLIDE 49

Business Implementation Business Implementation

49 / 70

slide-50
SLIDE 50

Framework Generated Implementation Framework Generated Implementation

50 / 70

slide-51
SLIDE 51

EObject Interface EObject Interface

51 / 70

slide-52
SLIDE 52

Eattribute Implementation Eattribute Implementation

52 / 70

slide-53
SLIDE 53

EReference Implementation EReference Implementation

53 / 70

slide-54
SLIDE 54

EOperation Implementation EOperation Implementation

54 / 70

slide-55
SLIDE 55

Defining the EOperation Defining the EOperation

55 / 70

slide-56
SLIDE 56

EMF.edit

slide-57
SLIDE 57

Role of EMF.edit Role of EMF.edit

57 / 70

slide-58
SLIDE 58

Generator Pattern Generator Pattern

58 / 70

slide-59
SLIDE 59

Framework Generator Structure Framework Generator Structure

59 / 70

slide-60
SLIDE 60

EMF.edit and Patterns EMF.edit and Patterns

60 / 70

slide-61
SLIDE 61

Changing the Label Changing the Label

61 / 70

slide-62
SLIDE 62

Label Change Code Label Change Code

62 / 70

slide-63
SLIDE 63

Changing the Icon Representation Changing the Icon Representation

63 / 70

slide-64
SLIDE 64

Changing Icons in Code Changing Icons in Code

64 / 70

slide-65
SLIDE 65

Changing the Image by Code Changing the Image by Code

65 / 70

slide-66
SLIDE 66

EMF.editor

slide-67
SLIDE 67

Role of EMF.editor Role of EMF.editor

67 / 70

slide-68
SLIDE 68

Is It Good Enough? Is It Good Enough?

68 / 70

slide-69
SLIDE 69

What’s Generated? What s Generated?

69 / 70

slide-70
SLIDE 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