Community
Participate
Working Groups
A rather common task is to get the value of an observable that belongs to another realm. To do this users have to go through an awkward manoeuvre involving a box which is assigned to from a runnable. Example: IObservableValue<String> o = ... AtomicReference<String> ref = new AtomicReference<>(); o.getRealm(() -> ref.set(o.getValue)); String s = ref.get(); We should add a method on Realm that helps with this task, so the code above can be written as follows: IObservableValue<String> o = ... String s = o.getRealm().execAndGet(o::getValue);
Work on this stalled when I discovered the complexity with exceptions from the target realm...
SWT added a similar method directly on Display: https://bugs.eclipse.org/bugs/show_bug.cgi?id=575823