Version 0.8M5 of MoDisco, has been released yesterday : http://www.eclipse.org/gmt/modisco/downloads/
It already embeds the components which will be available in the final 0.8 version running with Helios.
Today I would like to focus on two new components (Query Manager and Facet Manager) and how they are used by the new version of the Model Browser to allow defining custom (and dynamic) viewpoints on your EMF models.
These mechanisms have been developped to support understanding of complex models automatically created from legacy source code. But you can also use it on "classic" EMF models created manually with graphical tool such as Papyrus.
Query Manager (new)
This is a new component providing a facade to evaluate queries against an EMF model independently from the query mechanism. Implementations are provided to call queries written in Java, EMFQuery, OCL and XPath.
Facet Manager (new)
This new component provides a mechanism to dynamically extend EMF model elements by adding "virtual" attributes and relations computed by queries.
ModelBrowser
The look & feel has been reviewed to be more compliant with Eclipse UI checklist.
With the new version it is possible to dynamically customize how the EMF model elements are displayed. Any customizable feature (label, color, icon, police, ...) can be set statically, or dynamically using a Query executed on each element to display.
Wizard to customize the Browser for a given metamodel
You can also execute a Query against a model element directly from the browser
Selection of a model element from the Browser
Selection of Query to execute on the selected element
Result of the Query displayed in a table
If you want the Query to be always executed on each element of the same type, you can define a Facet to see the Query as a virtual type, attribute or relation in the browser.
The Query "subClassifiers" visible as a "virtual" relation on Class