Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "GEF/GEF4/DOT/Examples"

< GEF‎ | GEF4‎ | DOT
m
m
Line 6: Line 6:
 
The examples provided by [[#Examples (undeployed)|Examples]] demonstrate how to use the API provided by the [[GEF/GEF4/DOT#DOT|DOT]] module of [[GEF/GEF4/DOT|GEF4 DOT]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.dot.examples</code>) from our [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/ 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 <code>org.eclipse.gef4.target</code> may be augmented for this purpose), or checked out in source as well (see [[GEF/Contributor Guide | 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 <code>org.eclipse.gef4.dot.examples</code> via the context menu ('Run As' -> 'Java Application').
 
The examples provided by [[#Examples (undeployed)|Examples]] demonstrate how to use the API provided by the [[GEF/GEF4/DOT#DOT|DOT]] module of [[GEF/GEF4/DOT|GEF4 DOT]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.dot.examples</code>) from our [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/ 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 <code>org.eclipse.gef4.target</code> may be augmented for this purpose), or checked out in source as well (see [[GEF/Contributor Guide | 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 <code>org.eclipse.gef4.dot.examples</code> via the context menu ('Run As' -> 'Java Application').
  
 +
==== DotImportExample ====
 +
*'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.dot.examples/src/org/eclipse/gef4/dot/examples/DotImportExample.java org.eclipse.gef4.dot.examples.DotImportExample]'''
 +
 +
The <code>DotImportExample</code> demonstrates how a [[GEF/GEF4/Graph#Graph, Node, Edge|Graph]] with [[GEF/GEF4/DOT#DotProperties|DotProperties]] can be constructed from [http://www.graphviz.org/doc/info/lang.html DOT] input using [[GEF/GEF4/DOT#DotImport|DotImport]].
 +
 +
==== DotExportExample ====
 +
*'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.dot.examples/src/org/eclipse/gef4/dot/examples/DotExportExample.java org.eclipse.gef4.dot.examples.DotExportExample]'''
 +
 +
The <code>DotExportExample</code> demonstrates how a [[GEF/GEF4/Graph#Graph, Node, Edge|Graph]] with [[GEF/GEF4/DOT#DotProperties|DotProperties]] can be serialized into [http://www.graphviz.org/doc/info/lang.html DOT] using [[GEF/GEF4/DOT#DotExport|DotExport]].
  
 
[[Category:GEF]]
 
[[Category:GEF]]

Revision as of 02:54, 9 June 2015

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.

Back to the top