
h2. EMF Model Viewers


The viewers allow to visualize the structure of any EMF model. This applies to the definition of a model (meta model) as well as to the interlinked elements of the model content.


h3. Meta Model Explorer

The central element of the __Meta Model Explorer__ is a list view that can be opened via **Window > Show view**. It provides the possibility to visualize the elements of an EMF meta model. The list of available meta models contains all registered EMF models of the current runtime environment. For convenience there is also a button to register (external) Ecore files.

p=. !../pictures/platform_extensions/emf-viewers_meta-model-explorer_1.png!

All elements (classes, interfaces, enumerations) of the selected meta model are shown in a filtered list. The context menu offers different graphical visualizations that will be opened in separate viewer (see next section).

p=. !../pictures/platform_extensions/emf-viewers_meta-model-explorer_2.png!

A double click on a list item shows an additional tree view with the hierarchy (sub classes and super classes) and all the attributes of the item. Multiple views can be opened in parallel.

p=. !../pictures/platform_extensions/emf-viewers_meta-model-explorer_3.png!


h3. Graphical Viewer

The __Graphical Viewer__ shows SVG diagrams generated with PlantUML (https://plantuml.com). PlantUML is available as Eclipse plugin and will be installed automatically. The generation also requires GraphViz (http://www.graphviz.org/) that has to be installed manually.

p=. !../pictures/platform_extensions/emf-viewers_toolchain.png!

The generated diagrams are SVG files that are rendered by the browser component of SWT. The elements are also HTML links and can be used to navigate to diagrams of the same type but with a different selected element.

Some example diagrams:

**Class Hierarchy**

p=. !../pictures/platform_extensions/emf-viewers_graphical_hierarchy.png!

**Class References**

p=. !../pictures/platform_extensions/emf-viewers_graphical_references.png!

**Class Hierarchy + Content**

p=. !../pictures/platform_extensions/emf-viewers_graphical_content.png!



h3. Installation via P2 update site

bc. 
https://download.eclipse.org/app4mc/components/tools/emf-viewers/snapshot/p2repo

p=. !../pictures/platform_extensions/emf-viewers_updatesite.png!


