emf facet eclipsecon 2011 audition

20
Copyright © 2010 Mia-Software All Rights Reserved Copyright © 2010 Mia-Software All Rights Reserved EMF Facet A Non-Intrusive Tooling to Extend Metamodels Frédéric Madiot, Mia- Software Grégoire Dupé, Mia- Software

Upload: fmadiot

Post on 26-May-2015

1.693 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

EMF FacetA Non-Intrusive Tooling to Extend Metamodels

Frédéric Madiot, Mia-Software

Grégoire Dupé, Mia-Software

Page 2: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Why to extend ?

Page 3: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Why to extend ?

Page 4: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new attributes

Page 5: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new operations

Page 6: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new links

Page 7: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new subtypes

Page 8: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add non-semantic properties

Icon dependingon the category

Icon

Label color depending on the number of books

Page 9: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Extensibility limitations

You can’t always change

the metamodel

Page 10: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Extensibility limitations

Existing Instances can’t change their type

Page 11: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Extensibility limitations

You can’t dynamically create/load/unload extensions

Copyright © Michael Heston http://www.flickr.com/photos/hestonmichael

Page 12: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

EMF Facet project

An non-intrusive metamodel extension tooling

http://www.eclipse.org/modeling/emft/facet/

Initial contribution from MoDisco

FacetMetamodel extensibility

CustomizationGeneric additional properties

QueryComputable values

Page 13: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

What can you do with EMF Facet ?

Page 14: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: UML extension for SysML

Page 15: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: UML extension for SysML

Additionalrelation

Page 16: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JPA

Page 17: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JPA

Page 18: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JPA

Additionalattribute

Page 19: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JUnit

Additionalattributes

Color calculateddynamically

Page 20: EMF Facet EclipseCon 2011 Audition

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Thank you !

Eclipse projects

http://www.eclipse.org/MoDisco/

http://www.eclipse.org/modeling/emft/facet/

Company

http://www.mia-software.com/

http://www.sodifrance.fr/

Blog

http://fmadiot.blogspot.com/