Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-12-21 03:15:34 -0500
committerTom Schindl2013-12-21 03:15:34 -0500
commit0bc8433cd7f20dc41319e6127bc9d5dfba319a55 (patch)
tree692fde3582dbd7b76941e65e860f526a2a5d2eba
parent68040f106677b088825381a167cc4f4977b5b251 (diff)
downloadorg.eclipse.efxclipse-0bc8433cd7f20dc41319e6127bc9d5dfba319a55.tar.gz
org.eclipse.efxclipse-0bc8433cd7f20dc41319e6127bc9d5dfba319a55.tar.xz
org.eclipse.efxclipse-0bc8433cd7f20dc41319e6127bc9d5dfba319a55.zip
Bug 424554 - Add possibility to create an IObservableList from another
IObservableList converting values from source to target
-rwxr-xr-xbundles/runtime/org.eclipse.fx.core.databinding/src/org/eclipse/fx/core/databinding/AdapterFactory.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/bundles/runtime/org.eclipse.fx.core.databinding/src/org/eclipse/fx/core/databinding/AdapterFactory.java b/bundles/runtime/org.eclipse.fx.core.databinding/src/org/eclipse/fx/core/databinding/AdapterFactory.java
index a3a358e48..88b3fc918 100755
--- a/bundles/runtime/org.eclipse.fx.core.databinding/src/org/eclipse/fx/core/databinding/AdapterFactory.java
+++ b/bundles/runtime/org.eclipse.fx.core.databinding/src/org/eclipse/fx/core/databinding/AdapterFactory.java
@@ -573,7 +573,7 @@ public class AdapterFactory {
*/
@SuppressWarnings("unchecked")
public static <S, T> IObservableList convertObservableList(IObservableList source, Callback<S, T> converter) {
- ReadonlyWritableList target = new ReadonlyWritableList(source.getRealm());
+ final ReadonlyWritableList target = new ReadonlyWritableList(source.getRealm());
try {
target.modifiable = true;
@@ -736,15 +736,6 @@ public class AdapterFactory {
}
}
- static <S, T> T convertIt(S object, Callback<S, T> converter, Map<S, T> cache) {
- T t = cache.get(object);
- if (t == null) {
- t =
- cache.put(object, t);
- }
- return t;
- }
-
private static <E, F extends ObservableValue<E> & WritableValue<E>> void do_bind(final F fxObs, final F dbObs) {
fxObs.addListener(new ChangeListener<E>() {
boolean syncing;

Back to the top