emf facet at ese 2010

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 11-May-2015

1.493 views

Category:

Technology


2 download

DESCRIPTION

Presentation of EMF Facet project at Eclipse Summit 2010 http://www.eclipsecon.org/summiteurope2010/sessions/?page=sessions&id=1758

TRANSCRIPT

Page 1: EMF Facet at ESE 2010

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 at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Mia-Software

Mia-Software is a Software Company

80 customers, in 10 different countries

Eclipse Foundation member (5 committers)

Develops Model-Driven solutions since 1998

Mia-Insight : Quality AnalysisLegacy UnderstandingApplication Mining

Mia-StudioModel-to-Model transformationModel-to-Text transformation

Eclipse ProjectsMDT/MoDiscoEMFT/EMF Facet

Page 3: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Why to extend ?

Page 4: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new links

Page 5: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new attributes

Page 6: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new operations

Page 7: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Add new subtypes

Page 8: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Icon dependingon the category

Add non-semantic properties

IconLabel color depending on the number of books

Page 9: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Oups…!

Page 10: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Extensibility limitations

What if you are not the author of the metamodel ?

You can’t always change the metamodelex: UML

What to do with existing models ?

Existing Instances can’t change their typeEx: Book -> ScienceFictionBook

What if your extension is specific to a working context ?

You can’t dynamically create/load/unload extensionsEx: Statistics, Shortcuts, Viewpoint, etc.

Page 11: EMF Facet at ESE 2010

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 12: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Why to use EMF Facet?

Tools developpers: provide customizable tools

Call EMF Facet APIsExecute QueriesApply FacetsGet extended Attributes and References valuesGet graphical property valuesIntegrate customizable tree view

Tools users: adapt tools to your needs

Write your own queries

Customize your diagrams, forms, trees, …

Declare your own model extension

Page 13: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Demo

Page 14: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

What can you do with EMF Facet ?

Page 15: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: UML extension for SysML

Page 16: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JPA

Additionalattribute

Page 17: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JUnit

Icon for test methods

Additionalrelations

Page 18: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Example: Java extension for JUnit

Additionalattributes

Color calculateddynamically

Page 19: EMF Facet at ESE 2010

Copyright © 2010 Mia-Software All Rights Reserved

Copyright © 2010 Mia-Software All Rights Reserved

Project Status

Project planProject creation: doneInitial contribution: in progressRefactoring: in progressRelease within Indigo

TeamGabriel Barbier (Mia-Software)Nicolas Bros (Mia-Software)Hugo Brunelière (INRIA / AtlanMod)Grégoire Dupé (Mia-Software)Fabien Giquel (Mia-Software)Frédéric Madiot (Mia-Software)Patrick Tessier (CEA)

Page 20: EMF Facet at ESE 2010

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/