emf facet eclipsecon 2011 audition
TRANSCRIPT
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
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Why to extend ?
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Why to extend ?
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Add new attributes
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Add new operations
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Add new links
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Add new subtypes
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
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Extensibility limitations
You can’t always change
the metamodel
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Extensibility limitations
Existing Instances can’t change their type
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
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
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
What can you do with EMF Facet ?
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Example: UML extension for SysML
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Example: UML extension for SysML
Additionalrelation
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Example: Java extension for JPA
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Example: Java extension for JPA
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Example: Java extension for JPA
Additionalattribute
Copyright © 2010 Mia-Software All Rights Reserved
Copyright © 2010 Mia-Software All Rights Reserved
Example: Java extension for JUnit
Additionalattributes
Color calculateddynamically
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/