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/MVC"

< GEF‎ | GEF4
m
Line 9: Line 9:
 
== Examples ==
 
== Examples ==
  
We currently provide an example Eclipse UI view (GEF4 MVC.FX.UI Example View) that demonstrates the interplay of all MVC components (i.e. MVC, MVC.FX, MVC.UI, and MVC.FX.UI), and is also based on [[GEF/GEF4/Geometry | Geometry]], [[GEF/GEF4/FX | FX]], and [[GEF/GEF4/SwtFX | SwtFX]] components.
+
We currently provide an example Eclipse UI view (GEF4 MVC.FX.UI Example View) that demonstrates the interplay of all MVC components (i.e. MVC, MVC.FX, MVC.UI, and MVC.FX.UI), and is also based on the  [[GEF/GEF4/Geometry | Geometry]], [[GEF/GEF4/FX | FX]], and [[GEF/GEF4/SwtFX | SwtFX]] components.
  
 
[[Image:GEF4_MVC_FX_UI_Example.png|300px]]
 
[[Image:GEF4_MVC_FX_UI_Example.png|300px]]

Revision as of 18:54, 23 March 2014

Note to non-wiki readers: This documentation is generated from the Eclipse wiki - if you have corrections or additions it would be awesome if you added them in the original wiki page.


Introduction

The GEF 4 MVC component provides support for building up graphical editors and views based on a model-view-controller architecture. It provides toolkit-independent MVC-support (MVC) as well JavaFX-specific specializations (MVC.FX) and Eclipse UI-integration for both (MVC.UI, MVC.FX.UI).

Examples

We currently provide an example Eclipse UI view (GEF4 MVC.FX.UI Example View) that demonstrates the interplay of all MVC components (i.e. MVC, MVC.FX, MVC.UI, and MVC.FX.UI), and is also based on the Geometry, FX, and SwtFX components.

GEF4 MVC FX UI Example.png

The example is not bundled on our update-sites but rather has to be checked out in source (org.eclipse.gef4.mvc.fx.ui.example) from our GEF4 Git repository. In order to let 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, added to a target definition (the already provided targets 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). You will also need to have e(fx)clipse installed in your running eclipse platform in order to run the example.

Having prepared everything as outlined before, you may then simply launch an Eclipse Application from your workspace, providing the -Dosgi.framework.extensions=org.eclipse.fx.osgi vm argument to your launch configuration (otherwise all JavaFX classes will not be resolved, also on Java8). The example view 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.

Back to the top