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

< GEF‎ | GEF4‎ | Zest
(Graph Example (Standalone, Eclipse UI))
m (Graph Example (UI-integration))
Line 15: Line 15:
 
*'''bundle: org.eclipse.gef4.zest.examples.graph'''
 
*'''bundle: org.eclipse.gef4.zest.examples.graph'''
 
*'''bundle: org.eclipse.gef4.zest.examples.graph.ui'''
 
*'''bundle: org.eclipse.gef4.zest.examples.graph.ui'''
 
[[Image:GEF4Zest.FX.UI-GraphExample.png|600px|GEF4 Zest in Eclipse]]
 
  
 
The Eclipse UI-integrated version can simply be installed from our update-sites. It can then easily be accessed in your runtime eclipse application via the ''Window->Show View->Other...'' menu, where it is located in the ''Other'' category. Note that, if you are running on Linux with GTK3, you have to force SWT to use the GTK2 API by setting the environment variable SWT_GTK3 to 0, because of a JavaFX/SWT integration bug ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=469126 Bugzilla #469126]).
 
The Eclipse UI-integrated version can simply be installed from our update-sites. It can then easily be accessed in your runtime eclipse application via the ''Window->Show View->Other...'' menu, where it is located in the ''Other'' category. Note that, if you are running on Linux with GTK3, you have to force SWT to use the GTK2 API by setting the environment variable SWT_GTK3 to 0, because of a JavaFX/SWT integration bug ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=469126 Bugzilla #469126]).
 +
 +
[[Image:GEF4Zest.FX.UI-GraphExample.png|600px|GEF4 Zest in Eclipse]]
  
 
----
 
----

Revision as of 07:12, 8 June 2015

Graph Example (Standalone, Eclipse UI)

The Graph Example is provided as a standalone JavaFX application as well as an Eclipse UI integration. It demonstrates all end-user visible features provided by GEF4 Zest.

Graph Example (Standalone)

  • bundle: org.eclipse.gef4.zest.examples.graph

GEF4 Zest stand-alone Graph example

Graph Example (UI-integration)

  • feature: org.eclipse.gef4.zest.examples
  • bundle: org.eclipse.gef4.zest.examples
  • bundle: org.eclipse.gef4.zest.examples.graph
  • bundle: org.eclipse.gef4.zest.examples.graph.ui

The Eclipse UI-integrated version can simply be installed from our update-sites. It can then easily be accessed in your runtime eclipse application via the Window->Show View->Other... menu, where it is located in the Other category. Note that, if you are running on Linux with GTK3, you have to force SWT to use the GTK2 API by setting the environment variable SWT_GTK3 to 0, because of a JavaFX/SWT integration bug (Bugzilla #469126).

GEF4 Zest in Eclipse


Examples.UI (undeployed)

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

The examples provided by Examples.UI demonstrate how to use the JFace-API provided by GEF4 Zest.FX.UI. They are not deployed on our update-sites and have to checked out in source (org.eclipse.gef4.zest.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.zest.examples.ui via the context menu ('Run As' -> 'Java Application').

JFaceColorsExample

GEF4-Zest-Examples-UI-JFaceColorsExample.png

JFaceCustomNodeExample

GEF4-Zest-Examples-UI-JFaceCustomNodeExample.png

JFaceEdgeDecorationExample

GEF4-Zest-Examples-UI-JFaceEdgeDecorationExample.png

JFaceEdgeRouterExample

GEF4-Zest-Examples-UI-JFaceEdgeRouterExample.png

JFaceFontsExample

GEF4-Zest-Examples-UI-JFaceFontsExample.png

JFaceNestingExample

GEF4-Zest-Examples-UI-JFaceNestingExample.png

JFaceSimpleExample

GEF4-Zest-Examples-UI-JFaceSimpleExample.png

JFaceTooltipExample

GEF4-Zest-Examples-UI-JFaceTooltipExample.png

Back to the top