Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Databinding] AssertionFailedException while disposing DataBindingContext
[Databinding] AssertionFailedException while disposing DataBindingContext [message #332571] Wed, 29 October 2008 11:06 Go to next message
Sebastian Paul is currently offline Sebastian PaulFriend
Messages: 106
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
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
>
Re: [Databinding] AssertionFailedException while disposing DataBindingContext [message #332590 is a reply to message #332577] Thu, 30 October 2008 09:58 Go to previous message
Sebastian Paul is currently offline Sebastian PaulFriend
Messages: 106
Registered: July 2009
Senior Member
Matthew Hall wrote:
> This is an implementation detail that should not be exposed. Would you
> file a bug for this?

Ok, https://bugs.eclipse.org/bugs/show_bug.cgi?id=252732

Kind regards, Sebastian
Previous Topic:Remove Tag Tool(For Eclipse 3.4.0)
Next Topic:Strange install/update behavior
Goto Forum:
  


Current Time: Tue Jul 16 15:55:37 GMT 2024

Powered by FUDForum. Page generated in 0.03777 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top