Jump to: navigation, search

Difference between revisions of "JFace Data Binding/FAQ"

(Does Data Binding depend upon Eclipse?)
(Does Data Binding depend upon SWT?)
Line 3: Line 3:
  
 
=== Does Data Binding depend upon SWT? ===
 
=== Does Data Binding depend upon SWT? ===
No.  Data Binding is meant to be UI toolkit agnostic and more specifically UI agnostic.  There is default support for SWT and JFace but this is in the org.eclipse.jface.databinding.ui project which is separate from the core Data Binding APIs that live in org.eclipse.jface.databinding.
+
No.  Data Binding is meant to be UI toolkit agnostic and more specifically UI agnostic.  There is default support for SWT and JFace but this is in the org.eclipse.jface.databinding.ui project which is separate from the core Data Binding APIs that live in org.eclipse.jface.databinding.  For background and when the separation occurred in see {{bug|153630}}.
  
 
=== How do I bind to the ValidationError of a Binding or DataBindingContext? ===
 
=== How do I bind to the ValidationError of a Binding or DataBindingContext? ===
 
See [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet004DataBindingContextErrorLabel.java?rev=HEAD&content-type=text/vnd.viewcvs-markup snippet 004].
 
See [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet004DataBindingContextErrorLabel.java?rev=HEAD&content-type=text/vnd.viewcvs-markup snippet 004].

Revision as of 18:05, 14 October 2006

Does Data Binding depend upon Eclipse?

The core Data Binding plug-in only depends upon org.eclipse.equinox.common and no other parts of Eclipse. There are parts of Data Binding that depend upon SWT/JFace but these have been broken out into a separate plug-in, org.eclipse.jface.databinding.ui. For a discussion of why the core depends upon equinox common see bug 153630 comment 9.

Does Data Binding depend upon SWT?

No. Data Binding is meant to be UI toolkit agnostic and more specifically UI agnostic. There is default support for SWT and JFace but this is in the org.eclipse.jface.databinding.ui project which is separate from the core Data Binding APIs that live in org.eclipse.jface.databinding. For background and when the separation occurred in see bug 153630.

How do I bind to the ValidationError of a Binding or DataBindingContext?

See snippet 004.