| Free tutorials for Java, Eclipse and Web programming |
Version 0.5
Copyright © 2008, 2009 Lars Vogel
10.06.2009
| Revision History | ||
|---|---|---|
| Revision 0.1 | 23.05.2008 | Lars Vogel |
| Created Article | ||
| Revision 0.2 | 25.12.2008 | Lars Vogel |
| Renamed projects, included ControlDecoration | ||
| Revision 0.3 | 22.03.2009 | Lars Vogel |
| Moved model to separate plugin | ||
| Revision 0.4 | 23.03.2009 | Lars Vogel |
| Introduced listviewer | ||
| Revision 0.5 | 10.06.2009 | Lars Vogel |
| Updated to Eclipse 3.5 (Galileo) | ||
Eclipse JFace Databinding
This article explains the Eclipse Jface Databinding. Databinding provides a flexible way of connecting a domain model with the User Interface. This article will explain how to connect your model with the UI so that both will be automatically synchronized. It will demonstrate the usage of validators and field decorators. EMF databinding is also demonstrated.
The article assumes that you are familiar with Eclipse RCP development. In this article Eclipse 3.5 (Galileo) is used.
Table of Contents
The Eclipse Data Binding connects your domain model and the user interface. Changes in both will be automatically synchronized. You can use default or customized data validators to check the data and can use converters to convert the data between the UI and the domain model.
We will build an application which displays the data of a person and lets you change the person in the UI. Can you also trigger a direct change in the model via a button. Changes in the UI and the model will be synchronized with each other.
