Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "GEF/GEF4/DOT/Examples"
(→DotLayoutExample) |
(→DotLayoutExample) |
||
(One intermediate revision by one other user not shown) | |||
Line 19: | Line 19: | ||
*'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.dot.examples/src/org/eclipse/gef4/dot/examples/DotLayoutExample.java org.eclipse.gef4.dot.examples.DotLayoutExample]''' | *'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.dot.examples/src/org/eclipse/gef4/dot/examples/DotLayoutExample.java org.eclipse.gef4.dot.examples.DotLayoutExample]''' | ||
− | [[File:DotLayoutExample.png]] | + | [[File:DotLayoutExample.png|351px]] |
The <code>DotLayoutExample</code> is [[GEF/GEF4/Zest|GEF4 Zest]]-based example that demonstrates how the DOT native executable can be used to layout a [[GEF/GEF4/Graph#Graph|Graph]] using [[GEF/GEF4/DOT#DotImport|DotImport]], [[GEF/GEF4/DOT#DotExport|DotExport]], [[GEF/GEF4/DOT#DotExecutableUtils|DotExecutableUtils]], and [[GEF/GEF4/DOT#DotAttributes|DotAttributes]]. | The <code>DotLayoutExample</code> is [[GEF/GEF4/Zest|GEF4 Zest]]-based example that demonstrates how the DOT native executable can be used to layout a [[GEF/GEF4/Graph#Graph|Graph]] using [[GEF/GEF4/DOT#DotImport|DotImport]], [[GEF/GEF4/DOT#DotExport|DotExport]], [[GEF/GEF4/DOT#DotExecutableUtils|DotExecutableUtils]], and [[GEF/GEF4/DOT#DotAttributes|DotAttributes]]. | ||
[[Category:GEF]] | [[Category:GEF]] |
Latest revision as of 03:44, 28 May 2016
Examples (undeployed)
- bundle: org.eclipse.gef4.dot.examples
The examples provided by Examples demonstrate how to use the API provided by the DOT module of GEF4 DOT. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.dot.examples
) from our GEF4 Git repository. In order to have the example plug-in compile properly, all other required GEF4 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.gef4.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.gef4.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 GEF4 Zest-based example that demonstrates how the DOT native executable can be used to layout a Graph using DotImport, DotExport, DotExecutableUtils, and DotAttributes.