[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ufk-dev] Default realm

Hi,

Hm. Looking at the code of the SWT implementation I have to correct
myself. The Realm the UI-Widgets update themselves is by default the
SwingRealm but I think the problem is that we are using
Thread.currentThread() which is wrong.

We'd have to use the dispatcher thread of swing. Do you know by chance
how to get to this thread?

Tom

Am 20.01.11 01:38, schrieb Tom Schindl:
> Hi,
> 
> You are right this looks wrong and should be fixed.
> 
> Tom
> 
> Am 20.01.11 00:27, schrieb Max Gordienko:
>> Hi all,
>>
>> Is there a particular reason why in the Swing databinding classes like
>> TextObservableValue or AbstractSwingObservableValue SwingRealm is
>> used.
>> I'm talking about the constructors without a Realm parameter.
>> Shouldn't Realm.getDefault() be used instead?
>>
>> Using a concrete Realm implementation greatly complicates testing when
>> a test(mock) realm implementation is used.
>>
>> Thank you!
>> _______________________________________________
>> ufk-dev mailing list
>> ufk-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/ufk-dev
> 
> 


-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                                        geschaeftsfuehrer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5/1    A-6020 innsbruck      phone    ++43 512 935834