Questions tagged [eclipse-databinding]

Refers to JFace Data Binding which is a multi-threaded set of abstractions that allow for automated validation and synchronization of values between objects. This is commonly used for, but not limited to, the binding of user interface components to model attributes. The core concepts behind the project are Observables and Bindings.

Definition

JFace Data Binding is a multi-threaded set of abstractions that allow for automated validation and synchronization of values between objects. This is commonly used for, but not limited to, the binding of user interface components to model attributes. The core concepts behind the project are Observables and Bindings. We provide IObservable implementations for SWT, JFace, and JavaBeans but the core is void of references to these in anticipation of implementations for other projects (e.g. EMF, Swing, etc.).

References

JFace Data Binding Wiki

34 questions
10
votes
1 answer

TreeViewer to GridTreeViewer: bridge between existing ITreeContentProviders and "lazy" ObservableListTreeContentProvider

TL;DR Based on Thomas Schindl's article JFace-Viewer and Eclipse Databinding with > 10.000 Objects (which suggests a very good idea), I'd like to convert a regular TreeViewer + multiple ITreeContentProvider implementations to Nebula's GridTreeViewer…
Sk8erPeter
  • 6,899
  • 9
  • 48
  • 67
5
votes
2 answers

swt/jface databinding: PojoProperties vs PojoObservable

I'm writing a JFace dialog, and I'd like to use databing to a model object. Looking at code I can see that there are times when I find a PojoProperties used to build the binding, while other time it is used a PojoObservables. Looking at the Javadoc…
arzillo
  • 183
  • 1
  • 3
  • 7
5
votes
3 answers

How to write a filtered IObservableList

From some API call, I am getting back an IObservableList, from the Eclipse Databinding framework. I'd wish to derive another IObservableList from this one according to some predicate defined on the element type E. The derived list should be…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
4
votes
4 answers

Instantiating ObservableList?

I am trying to understand the concept of ObservableList and Realms. I have tried to create an instance of an ObservableList like this: public ObservableList createObservableList() { ObservableList myObsList = new ObservableList(new…
u123
  • 15,603
  • 58
  • 186
  • 303
3
votes
0 answers

Java PropertyChangeSupport using annotation

Generally we use something like public class Person { private final PropertyChangeSupport changeSupport = new PropertyChangeSupport(this); .... } to make POJOs bindable to UI or able to listen property changes from other objects.…
3
votes
1 answer

How to Bind a Model to a SWT Text but showing only one field in the text

I have a Remote File Model which has fields as file name, file path, and connection IP,connection port etc for the remote directory.I want to show only the file path in a Text. I am using JFace Data binding for binding the model to SWT Text but I am…
saurabh
  • 257
  • 1
  • 3
  • 12
2
votes
1 answer

Nested observable list from EObjects contents

I have a model with the following structure (specified here in Xcore): class Network { contains Master[] masters } class Master { contains Slave[] slaves } class Slave {} I want to use EMF databinding to create an observable list of all…
Lii
  • 11,553
  • 8
  • 64
  • 88
2
votes
1 answer

New Generics in databinding Lists causing compile errors

I am currently upgrading my RCP project to Neon and have hit the following problem. It seems that generics have been added to the JFace databinding which has resulted in new method signatures. Previously I was able to do List
paul
  • 13,312
  • 23
  • 81
  • 144
2
votes
0 answers

How to bind an ObservableMap to a ListViewer or TableViewer?

There are plenty of examples on how to bind a Set or a List to a Viewer using the ObservableSetContentProvider or ObservableListContentProvider. However, I could not find anything about a ObservableMapContentProvider or a way to bind a viewer to a…
xavipen
  • 229
  • 1
  • 11
2
votes
1 answer

Binding a TableViewer with a model which is being extended by several other model

I have a class File which is being extended by two other classes CopyFile and DeleteFile. class File { private String filePath; /** Setters and getters **/ } class CopyFile { private String destinationPath; /**setters and…
saurabh
  • 257
  • 1
  • 3
  • 12
2
votes
0 answers

Eclipse RCP, bind a set to a map of properties

I have the following model: public class HoverDescriptor { private String id; private String label; private boolean enabled; private String description; private int stateMask; private String modifierString; public…
Andrea Richiardi
  • 703
  • 6
  • 21
2
votes
1 answer

ViewerSupport and ITableColorProvider or ITableFontProvider

I'm writing an RCP-Application and trying to use databinding to link the controls of the GUI with the model. This includes for example binding data to a table. As far as I understood, org.eclipse.jface.databinding.viewers.ViewerSupport is the…
2
votes
1 answer

In JFace Databinding, Is it possible to cancel an change in widget if its validation fail?

When dealing with combo-box viewer, its selection is binded and a validator is set for it. I'm wondering if it is possible to cancel the change of the selection if the selection presents a invalid value? The reason why i'm asking this, is that…
Wudong
  • 2,320
  • 2
  • 32
  • 46
2
votes
4 answers

Databinding to container of unknown type

I have a simple EMF model of the following type: EClass FooGroup { EString name; @Properties(containment=true, upper=-1) List nodes; } EClass BarGroup { EString name; @Properties(containment=true, upper=-1) List
parasietje
  • 1,529
  • 8
  • 36
1
vote
1 answer

JFace databinding MultiValidator not reevaluating

I have set up a MultiValidator to check if the sum of 2 text fields equals the value of another field. Yet, for some reason, the validator is only validated once, upon initialization. Upon initialization, it always turns out successful as it should.…
XtremeBaumer
  • 6,275
  • 3
  • 19
  • 65
1
2 3