Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [nebula-dev] CDateTime widget: no possibility to specify Realm in CDateTimeObservableValue

Hi Matthias,

Please file an issue and a patch, I will merge it.

Cheers,

Wim


On Thu, Apr 12, 2018 at 10:13 AM, Matthias Paul Scholz <matthias.paul.scholz@xxxxxxxxx> wrote:
Hi,

I'm presently trying to integrate the CDateTime widget into our RCP application. Since it heavily relies on databinding, I was happy to find a CDateTimeObservableValue in Nebula that allows for binding external models to the CDateTime widget. :)

However, when writing a SWTBot test for the widget, I have noticed that it falis due to the fact that the CDateTimeObservableValue internally uses Realm.getDefault() which gives rise to an exception in the the baseĀ  AbstractObservableValue in case of unit tests.

What is missing here is an additional constructor for CDateTimeObservableValue that also takes a Realm instance and delegates to the according constructor in AbstractObservableValue.

/MP

_______________________________________________
nebula-dev mailing list
nebula-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/nebula-dev


Back to the top