Eclipse GEF DOT – Graphical Views on Xtext DSLs
The previous blog post introduced complex Graphviz *.dot graphs to add Eclipse GEF DOT-based visualization support to the Eclipse IDE. This blog post demonstrates the usage of the GEF DOT Graph View to add graphical representations to Xtext DSLs.
Adding GEF DOT-based visualization support to the Eclipse IDE
The previous blog post introduced the GEF DOT Editor that assists the user in editing Graphviz *.dot files and the GEF DOT Graph View that is capable of visualizing them in the Eclipse Workbench UI. This blog post continues with more complex DOT graphs to show some potential use case scenarios to add GEF DOT-based visualization support to the Eclipse IDE.
Pro Tip: Implementing JUnit Test Cases in Xtend
What makes a clean test? Three things. Readability, readability, and readability. Readability is perhaps even more important in unit tests than it is in production code. What makes tests readable? The same thing that makes all code readable: clarity, simplicity, and density of expression.
Pro Tip: Visualizing Xtext Grammar with Eclipse GEF
The Xtext grammar is the central component when developing DSL workbenches based on the Xtext framework. In case of complex DSLs, analyzing the graphical representation of *.xtext files can be useful to understand the structure of the defined grammar rules.
Editing Graphviz *.dot files with the GEF DOT Editor
Graphviz *.dot files are usual text files containing the textual representation of graph definitions. The structure of these *.dot files are defined by the DOT Language that provides more than 150 graph, subgraph, node and edge attributes to influence the graph visualization.