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/FX/Examples"

< GEF‎ | GEF4‎ | FX
m (FXGeometryNodeSnippet)
m
Line 25: Line 25:
 
*'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/snippets/FXMouseDragSnippet.java org.eclipse.gef4.fx.examples.snippets.FXMouseDragSnippet]'''
 
*'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples/src/org/eclipse/gef4/fx/examples/snippets/FXMouseDragSnippet.java org.eclipse.gef4.fx.examples.snippets.FXMouseDragSnippet]'''
  
The <code>FXMouseDragSnippet</code> demonstrates usage of [[GEF/GEF4/FX#FXConnection, IFXDecoration, IFXConnectionRouter, FXPolyBezierConnectionRouter, FXPolylineConnectionRouter|FXConnections]].
+
The <code>FXMouseDragSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#FXConnection, IFXDecoration, IFXConnectionRouter, FXPolyBezierConnectionRouter, FXPolylineConnectionRouter|FXConnection]].
  
 
[[File:GEF4-FX-Examples-FXMouseDragSnippet.png|400px]]
 
[[File:GEF4-FX-Examples-FXMouseDragSnippet.png|400px]]
Line 36: Line 36:
  
 
The examples provided by [[#Examples.UI (undeployed)|Examples.UI]] demonstrate how to use the API provided by the [[GEF/GEF4/FX#FX.UI|FX.UI]] module of [[GEF/GEF4/FX|GEF4 FX]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.fx.examples.ui</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. You will also have to install e(fx)clipse in your running eclipse instance and target platform (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.fx.examples.ui</code> via the context menu ('Run As' -> 'Java Application').
 
The examples provided by [[#Examples.UI (undeployed)|Examples.UI]] demonstrate how to use the API provided by the [[GEF/GEF4/FX#FX.UI|FX.UI]] module of [[GEF/GEF4/FX|GEF4 FX]]. They are not deployed on our update-sites and have to checked out in source (<code>org.eclipse.gef4.fx.examples.ui</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. You will also have to install e(fx)clipse in your running eclipse instance and target platform (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.fx.examples.ui</code> via the context menu ('Run As' -> 'Java Application').
 +
 +
==== ButtonFXControlAdapterSnippet ====
 +
 +
*'''class [http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.examples.ui/src/org/eclipse/gef4/fx/examples/snippets/ButtonFXControlAdapterSnippet org.eclipse.gef4.fx.examples.snippets.ButtonFXControlAdapterSnippet]'''
 +
 +
The <code>ButtonFXControlAdapterSnippet</code> demonstrates the usage of [[GEF/GEF4/FX#FXControlAdapter|FXControlAdapter]].
 +
 +
[[File:GEF4-FX-UI-Examples-ButtonFXControlAdapterSnippet.png|400px]]
  
 
[[Category:GEF]]
 
[[Category:GEF]]

Revision as of 08:02, 8 June 2015

Examples (undeployed)

  • bundle: org.eclipse.gef4.fx.examples

The examples provided by Examples demonstrate how to use the API provided by the FX module of GEF4 FX. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.fx.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. You will also have to install e(fx)clipse in your running eclipse instance and target platform (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.fx.examples via the context menu ('Run As' -> 'Java Application').

FXChopBoxELetterSnippet

The FXChopBoxELetterSnippet visualizes the reference point computation for the FXChopBoxAnchor.

GEF4-FX-Examples-FXChopBoxELetterSnippet.png

FXGeometryNodeSnippet

The FXGeometryNodeSnippet demonstrates usage of FXGeometryNode.

GEF4-FX-Examples-FXGeometryNodeSnippet.png

FXMouseDragSnippet

The FXMouseDragSnippet demonstrates the usage of FXConnection.

GEF4-FX-Examples-FXMouseDragSnippet.png


Examples.UI (undeployed)

  • bundle: org.eclipse.gef4.fx.examples.ui

The examples provided by Examples.UI demonstrate how to use the API provided by the FX.UI module of GEF4 FX. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.fx.examples.ui) 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. You will also have to install e(fx)clipse in your running eclipse instance and target platform (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.fx.examples.ui via the context menu ('Run As' -> 'Java Application').

ButtonFXControlAdapterSnippet

The ButtonFXControlAdapterSnippet demonstrates the usage of FXControlAdapter.

GEF4-FX-UI-Examples-ButtonFXControlAdapterSnippet.png

Copyright © Eclipse Foundation, Inc. All Rights Reserved.