Skip to content

DOT Examples

mwienand edited this page Jul 26, 2016 · 7 revisions

Examples (undeployed)

  • bundle: org.eclipse.gef.dot.examples

The examples provided by Examples demonstrate how to use the API provided by the DOT module of DOT. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef.dot.examples) from our GEF Git repository. In order to have the example plug-in compile properly, all other required GEF bundles will either have to be installed (in a matching version) into your running eclipse platform (if this is used as target), added to a target definition (the target definitions contained in org.eclipse.gef.target may be augmented for this purpose), or checked out in source as well (see GEF Project Contributor Guide for details on how to obtain the sources and setup your workspace). Having prepared everything as outlined before, the standalone example might easily be started by launching one of the following example classes from org.eclipse.gef.dot.examples via the context menu ('Run As' -> 'Java Application').

DotImportExample

The DotImportExample demonstrates how a Graph with DotProperties can be constructed from DOT input using DotImport.

DotExportExample

The DotExportExample demonstrates how a Graph with DotProperties can be serialized into DOT using DotExport.

DotLayoutExample

The DotLayoutExample is Zest-based example that demonstrates how the DOT native executable can be used to layout a Graph using DotImport, DotExport, DotExecutableUtils, and DotAttributes.

Clone this wiki locally