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
1
vote
0 answers

Optionally copy values between EMF attributes

Question Imagine following EMF-model based JFace-form +-------------------------------------------------+ | My text field1 : __________________ | +-------------------------------------------------+ | Inherit value from field1: [x] …
Boris Brodski
  • 8,425
  • 4
  • 40
  • 55
1
vote
0 answers

How to do "in-place editing" of a JFace Table?

In WPF (.net), when a DataGrid is made editable and set to an observable collection, there is a placeholder row. When one clicks on it, a new element is added to the backing collection and the table is put into edit mode. Is something like this…
rabejens
  • 7,594
  • 11
  • 56
  • 104
1
vote
0 answers

GenericMapCellLabelProvider cannot be resolved to a type

I have been doing some EFM databinding as a part of learning the eclipse modelling framework and one thing that didn't work with window builder was data binding with a TableViewer in th sense that it was fine for reading the data, but not for when…
user2405469
  • 1,953
  • 2
  • 22
  • 43
1
vote
1 answer

How to add Swing Data Binding to class path?

I'm new to Eclipse and Swing. I wanted to use some Data Binding for my program, and saw here [http://help.eclipse.org/juno/index.jsptopic=%2Forg.eclipse.wb.swing.doc.user%2Fhtml%2Ffeatures%2Fswing%2Fdata_binding%2Findex.html][1] In order to use…
789
  • 718
  • 1
  • 10
  • 30
1
vote
0 answers

How to use IObservable in a different realm?

I have observables x and y within SWT realm. I want to use their values to compute content for IObservableList z. The calculation can't be done in UI thread, so I have to write: class Computer { private final IObservableSet x; private final…
Basilevs
  • 22,440
  • 15
  • 57
  • 102
1
vote
1 answer

Observe org.eclipse.jface.text.IDocument content

There is a Text control bound to a model with WidgetProperties.text(). I'm going to promote it to TextViewer. TextViewer uses IDocument as its input, so WidgetProperties.text() seems to be inapplicable now. How do I keep the text in the control…
Basilevs
  • 22,440
  • 15
  • 57
  • 102
1
vote
1 answer

How to use EMF Databinding for an implicit inverse relationship

I have an Ecore model with classes A and B. This model can not be changed. A has a many-to-one reference to B. B has no reference to A. I would like to display a tree with Bs at the root and As as leaves. I would like to use EMF data binding. All…
Jörn Guy Süß
  • 1,408
  • 11
  • 18
1
vote
0 answers

UpdateValueStrategy and custom conversion multiple GUI elements to one property

I'm using the eclipse databinding with beans and an SWT java application. I successfully binded several textfields and checkboxes with my model. Now I have three radio buttons: GUI: ... Model model = new Model(); ... Button btnAllUsers = new…
Jakob
  • 41
  • 5
0
votes
1 answer

Undo/Redo with Eclipse-Databinding and without EMF

What is the common way to implement undo/redo when using Eclipse-Databinding in an Eclipse Application? When I search at Google, everybody advice to use EMF, but EMF is restricted at my company. I know the use of operations and so on, but at which…
0
votes
1 answer

How to resolve 'The method observe(Viewer) is ambiguous for the type IViewerValueProperty' compiler error

I was trying to use the org.eclipse.core.databinding plugin to bind my TableViewer input change. When I tried to add the binding by below code: 1. TableViewer tableViewer = new TableViewer(parent); 2. IViewerObservableValue target =…
Paul-E
  • 91
  • 12
0
votes
1 answer

JFace/Eclipse databinding trigger multivalidator in ChangeListener of AggregateValidationStatus

I have an AggregateValidationStatus with an IChangeListener. The listener is called every time I select/change and component which is what I need. The only problem I have is that I have to trigger the validate() method of my MultiValidator in the…
XtremeBaumer
  • 6,275
  • 3
  • 19
  • 65
0
votes
2 answers

Validation errors block undo

I have the following problem with my EMF based Eclipse application: Undo works fine. Validation works fine. But when there is a validation error for the data in a GUI field, this blocks the use of the undo action. For example, it is not possible to…
Lii
  • 11,553
  • 8
  • 64
  • 88
0
votes
1 answer

Can ViewerSupport.bind() be used in conjunction with images?

In my Eclipse RCP View, I use JFace databinding to bind model data to a org.eclipse.jface.viewers.TreeViewer. I use ViewerSupport.bind() to bind the data as shown in the snippets, and it works just fine. ViewerSupport.bind(viewer, model,…
s.d
  • 4,017
  • 5
  • 35
  • 65
0
votes
1 answer

Eclipse RCP 4 - binding column in table and iobservable value

I have the following issue - I have an IObservableValue, which is changing, and should be displayed in the first column of a table. The values in the other columns are based on this value (in each other column the value is calculated and the value…
Ivajlo Iliev
  • 303
  • 1
  • 3
  • 19
0
votes
1 answer

converting properties in a list using EMF databinding does not convert values

I am trying to convert some values from integers to strings using a converter. observerViewerValue = ViewerProperties.input().observe(tableViewer); UpdateValueStrategy strategy = new UpdateValueStrategy(); strategy.setConverter(new…
user2405469
  • 1,953
  • 2
  • 22
  • 43