Posts tagged with "databinding"

Aug 29th, 2012

Using Eclipse databinding with Felix

Update: It turned out that there is already a solution to the problem described here. The bundle org.eclipse.equinox.supplement exports the packages needed by equinox.common. This bundle is available from If you want to run Eclipse databinding, simply inlude this bundle and org.eclipse.equinox.common and you’re set. You can disregard the solution explained below. Thanks Pascal [...]

Aug 22nd, 2012

Improving reuse of JFace Data Binding validators

JFace Data Binding allows you to attach only one validator to a binding. Putting all constraints into one validator is essentially bad design and compromises reusability. Here’s a trick for dealing with this limitation of the data binding API and at the same time, keeping your validators small and reusable. When binding a source observable [...]

Leave a Comment
Oct 23rd, 2009

Tip: Computing the difference of two collections

Sometimes you have two collections and want to know how they differ. It would also be useful to have a series of steps that transform collection ‘A’ into collection ‘B’ (or the reverse). private static List list1 = Arrays.asList("a", "b", "c"); private static List list2 = Arrays.asList("a", "c", "d"); // Diff of list1 vs list2: [...]

Aug 25th, 2009

Eclipse e4 on the web

With e4 0.9 out in the wild, we should think again about the goals e4 tries to provide. One of them was to reduce the gap between Desktop and Web – not only speaking of reusing widgets but also to enable the platform handle multi-user scenarios. While the core e4 team concentrated onĀ eliminatingĀ bad smells like [...]

Feb 27th, 2009

Tip: Validation with a MultiValidator

In the last blog entry regarding databinding, we learned how to create a custom observable for a DateTime widget. Starting with Eclipse 3.5 there is a new approach to creating custom observables as described by Matthew Hall in the comments to that post. Which ever way you choose, we will now use the observable to [...]

1 Comment
Feb 3rd, 2009

Databinding: A Custom Observable for a Widget

The introduction of the databinding framework in Eclipse 3.3 is with no doubt one of the most useful tools in the hands of the form developer. The ability to transform and validate user input in such a flexible and reusable way is a great enhancement. But where there is light, there is shadow. Sometimes there [...]