[Databinding] AssertionFailedException while disposing DataBindingContext [message #332571] |
Wed, 29 October 2008 11:06  |
Eclipse User |
|
|
|
Hi,
I just wondered why I was getting a AssertionFailedException when calling
DataBindingContext#dispose(). I'm doing this to unbind my view while it is
hidden.
The exception comes from ObservableTracker#getterCalled(IObservable),
which checks with Assert.isTrue(observable.getRealm().isCurrent()).
So I have make the call as follows:
dataBindingContext.getBindings().getRealm().exec(new Runnable(){
public void run() {
dataBindingContext.dispose();
}
});
Why do I have to take care of this? Are there other situations where I
have to regard the Realm? Any tutorials for this?
Kind regards, Sebastian
|
|
|
Re: [Databinding] AssertionFailedException while disposing DataBindingContext [message #332577 is a reply to message #332571] |
Wed, 29 October 2008 17:08   |
Eclipse User |
|
|
|
This is an implementation detail that should not be exposed. Would you
file a bug for this?
Sebastian Paul wrote:
> Hi,
> I just wondered why I was getting a AssertionFailedException when
> calling DataBindingContext#dispose(). I'm doing this to unbind my view
> while it is hidden.
>
> The exception comes from ObservableTracker#getterCalled(IObservable),
> which checks with Assert.isTrue(observable.getRealm().isCurrent()).
>
> So I have make the call as follows:
> dataBindingContext.getBindings().getRealm().exec(new Runnable(){
> public void run() {
> dataBindingContext.dispose();
> }
> });
>
> Why do I have to take care of this? Are there other situations where I
> have to regard the Realm? Any tutorials for this?
>
> Kind regards, Sebastian
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03167 seconds