From a4cbcea445507a97e4a1ba849ca44c9a5cca7709 Mon Sep 17 00:00:00 2001 From: Jennifer Nerlich Date: Fri, 12 Jan 2024 17:09:52 +0100 Subject: [PATCH] Links of JFace Data Binding FAQ corrected Update links to JFace Data Binding / Runtime Dependency. It now points to the JFace Data Binding github page https://github.com/vogellacompany/eclipse.platform.ui/blob/master/docs/JFaceDataBinding.md Link to ICU4J deleted as not relevant. Deleted double entries created during the migration to markdown. --- docs/JFaceDataBindingFAQ.md | 89 +------------------------------------ 1 file changed, 2 insertions(+), 87 deletions(-) diff --git a/docs/JFaceDataBindingFAQ.md b/docs/JFaceDataBindingFAQ.md index a3f159e1d11..72f3537df2e 100644 --- a/docs/JFaceDataBindingFAQ.md +++ b/docs/JFaceDataBindingFAQ.md @@ -81,11 +81,11 @@ The data binding core plug-in does not depend on SWT but needs to talk about "be ### Does Data Binding depend on Eclipse and the OSGi runtime? -The core Data Binding plug-in only depends on org.eclipse.equinox.common, [ICU4J](/ICU4J "ICU4J") but no other parts of Eclipse. It will run without OSGi. +The core Data Binding plug-in only depends on org.eclipse.equinox.common, but no other parts of Eclipse. It will run without OSGi. See [Where can I get the plugins?](#Where-can-I-get-the-plugins) for information about downloading the framework. -See also [JFace Data Binding/Runtime Dependencies](/JFace_Data_Binding/Runtime_Dependencies "JFace Data Binding/Runtime Dependencies"). +See also [JFace Data Binding/Runtime Dependencies](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/docs/JFaceDataBinding.md#runtime-dependencies). ### Does Data Binding depend on SWT? @@ -109,88 +109,3 @@ Steps: ### Can JFace Data Binding run against older versions of Eclipse? Yes, we try to keep the data binding bundles compatible with the previous release of Eclipse - for example, data binding released with Eclipse 3.3 will work against Eclipse 3.2. Depending upon your needs you might need to take an extra step because of the way the released version of the bundles is compiled. For example, the compiled org.eclipse.jface.databinding bundle as released with Eclipse 3.3 will only run against Eclipse 3.3, whereas the distributions of org.eclipse.core.databinding and org.eclipse.core.databinding.beans will run just fine against Eclipse 3.2.x. If wanting to run org.eclipse.jface.databinding against Eclipse 3.2.x you'll need to build it from source against your target platform. For more information as to why this is necessary see [bug 177476](https://bugs.eclipse.org/bugs/show_bug.cgi?id=177476). - -). - -### Where can I get the plugins? - -The JFace Data Binding plug-ins can be found in any of the following distributions on the Eclipse [download page](http://download.eclipse.org/eclipse/downloads/): - -* Eclipse SDK -* RCP Runtime/SDK -* Platform Runtime/SDK - - -Just select the desired build (e.g. stable, integration, nightly) and download one of the above distributions. - -The plug-ins or JAR files that you need are these: - -* org.eclipse.core.databinding -* org.eclipse.core.databinding.observable -* org.eclipse.core.databinding.property -* org.eclipse.equinox.common -* org.eclipse.jface.databinding (if your want SWT and JFace databinding) -* org.eclipse.core.databinding.beans (if you want databinding to Java beans). - - -The databinding framework is accessible using Maven with these dependencies: - - - - org.eclipse.platform - org.eclipse.core.databinding - 1.9.0 - - - - - org.eclipse.platform - org.eclipse.core.databinding.beans - 1.6.100 - - - - - org.eclipse.platform - org.eclipse.jface.databinding - 1.11.100 - - - - - -### What is a Realm, and do I need to care? - -The data binding core plug-in does not depend on SWT but needs to talk about "being on the UI thread" in the abstract. The class Realm is similar to SWT's Display class - you can call Realm.asyncExec(Runnable) to execute code within a realm (read: on the UI thread), but it does not have any UI-specific methods or fields. If your UI is the only source of changes to your model, then everything will happen on the UI thread anyway and you don't have to worry about realms. **Workbench#createAndRunWorkbench** will initialize the default realm to be associated with the SWT UI thread if you are writing an RCP application, or a plug-in for the Eclipse Platform. If you are writing an application that only uses SWT, data binding, and optionally JFace, you will have to provide the realm explicitly, or set up a default realm in your main method. All of our [Snippets](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/docs/JFaceDataBinding.md#Snippets) do this - they are standalone applications that just use SWT and JFace. For more information, see the page about [Realm](/https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/docs/JFaceDataBinding.md#realm). - -### Does Data Binding depend on Eclipse and the OSGi runtime? - -The core Data Binding plug-in only depends on org.eclipse.equinox.common, [ICU4J](/ICU4J "ICU4J") but no other parts of Eclipse. It will run without OSGi. - -See [#Where can I get the plugins?](#Where_can_I_get_the_plugins) for information about downloading the framework. - -See also [JFace Data Binding/Runtime Dependencies](/JFace_Data_Binding/Runtime_Dependencies "JFace Data Binding/Runtime Dependencies"). - -### Does Data Binding depend on 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 project which is separate from the core Data Binding APIs that live in org.eclipse.core.databinding. For background and when the separation occurred in see [bug 153630](https://bugs.eclipse.org/bugs/show_bug.cgi?id=153630). - -### How do I bind to the ValidationError of a Binding or DataBindingContext? - -See [Snippet 004](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) and [Snippet 014](http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet014WizardDialog.java?rev=HEAD&content-type=text/vnd.viewcvs-markup). - -### How do I run the tests? - -The main JUnit Test Suite is contained in the org.eclipse.jface.tests.databinding project. This project contributes the "JFace-Data Binding Test Suite" to the IDE. When invoked this suite will run all tests. - -Steps: - -1. Ensure the org.eclipse.jface.tests.databinding project is in your workspace. -2. Open the Run Dialog (Run->Open Run Dialog...). -3. Expand the "JUnit Plug-in Test" entry. -4. Select the "JFace-Data Binding Test Suite" entry and select "Run". - -### Can JFace Data Binding run against older versions of Eclipse? - -Yes, we try to keep the data binding bundles compatible with the previous release of Eclipse - for example, data binding released with Eclipse 3.3 will work against Eclipse 3.2. Depending upon your needs you might need to take an extra step because of the way the released version of the bundles is compiled. For example, the compiled org.eclipse.jface.databinding bundle as released with Eclipse 3.3 will only run against Eclipse 3.3, whereas the distributions of org.eclipse.core.databinding and org.eclipse.core.databinding.beans will run just fine against Eclipse 3.2.x. If wanting to run org.eclipse.jface.databinding against Eclipse 3.2.x you'll need to build it from source against your target platform. For more information as to why this is necessary see [bug 177476](https://bugs.eclipse.org/bugs/show_bug.cgi?id=177476). -