This version contains serveral major enhancements (dynamic appeance properties, stronger OCL support, …) :
Graphical description concepts :
Dynamic Property Overriders addition : this feature allows to create an OCL expressions that will compute dynamically several figure appearance properties like colors or font styles. This is useful when one want to change the figures appearance according to the EObject attribute values.
The Graphdesc model allows to embed filters (the same concept as in the filter tab of the run configuration : filters allow to create OCL expressions indicating if a given EObject must be represented or not in the diagram)
RichReferenceFigure labels have been turned from EAttribute into OCL expression (giving more flexibility)
Appearance enhancement : font style addition for labels (bold / italic / underlined)
Miscellaneous :
Ecore model diagram generation feature (based on a specific graphical description embedded in emf2gv)
The manual has been re-written and turned into an eclipse help plugin (embedded in the distribution binaries)
OCL :
Several OCL functions (newColor, plus, …)
The OCL input dialog now validates the expected return type (if a boolean is expected and the expression returns a string, an error is displayed)
Feature removal/replacement :
The label property of the AttributeFigure has been removed (if you want to customize an AttributeFigure, use a RichAttributeFigure)
The “Dynamic colors accessors” feature has been removed : this feature did exist in order to allow to change dynamically the node colors in the generated diagram. Now that the “Dynamic Property Overriders” feature has been added, it became obsolete and has been removed.
Bug fixes :
Error message “file must start with '/'” when a diagram generation is launched on a model resource
In the run configuration, the filter tab is not anymore in error if no graphical description has been chosen
It is now possible to use emf2gv outside of eclipse in a standalone application or even a web application. This brings the possibility to generate diagrams in batch mode, in a web container or in a continuous integration environment
-
BUGFIX : when an EMF model was persisted in several XMI files, emf2gv did fail to load the whole resource set content
Main changes
A new tab has been added to the run configuration in order to enter several directives to filter the diagram elements to be drawn (OCL expressions) : these options allow to choose the EObject that are to be drawn in the diagram
Rich reference figures addition : The Rich Reference Figure
allows to represent labelled edges and to handle association classes.
Minor changes :
When generating a graphical description, for the top ClassFigure
label EAttribute, emf2gv now selects the first EAtribute of String type instead of the first (which could be of a meaningless type, like an integer or a boolean)
Minimum edge length
property addition to the Reference Figure
properties which allows to adjust the edges length
Node containment implementation (through Graphviz clusters)
Possibility not to draw the root node of the model (root nodes in EMF models are sometimes meaningless, and one may want it not to be drawn)
Dynamic color accessors (EObjects can now embed methods returning dynamically computed colors)
Edges appearance improvements :
Style management : dotted, dashed, …
Color selection
New arrow type named 'Custom' allowing the user to enter a Graphviz compliant arrow style syntax (which enables unfilled, left or right arrow styles)
Bugfix : Abstract references management fix in the wizard pages