Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [rap-dev] Question concerning UICallBackUtil

Hello Sebastian,

first of all: please use the RAP newsgroup for those kind of questions. You'll sometimes already find the answer there as well :-)

The order must be as following:
1. UICallback#activate(id)
2. Display#syncExec(uiUpdateRunnable) in your asychronous method (i.e. callback from Webservice)
3. updating the widget in the uiUpdateRunnable#run() and call UICallback#deactivate(id)

Regards,
Stefan.


-----Ursprüngliche Nachricht-----
Von: rap-dev-bounces@xxxxxxxxxxx [mailto:rap-dev-bounces@xxxxxxxxxxx] Im Auftrag von Sebastian Parkitny
Gesendet: Mittwoch, 17. Oktober 2007 15:39
An: RAP project development-related communication
Betreff: Re: [rap-dev] Question concerning UICallBackUtil

Hello again,

damn fast answer. OK, I don't know exactly how to use it. Im my
application I call a Web Service asynchroniously and in the callback
method I'd like to set some Text.setText (SWT Class). But
unfortunately, I get an error claiming an invalid thread access.

UICallBack.activate(id) should be called before the asynchronous call,
right? Is this an arbitrary async call or should I use
Display.asyncExec()?

2007/10/17, Stefan Roeck <Stefan.Roeck@xxxxxx>:
> Hi Sebastian,
>
> this class was renamed recently. Probably you are looking for the class UICallback.
>
> Regards,
> Stefan.
>
> -----Ursprüngliche Nachricht-----
> Von: rap-dev-bounces@xxxxxxxxxxx [mailto:rap-dev-bounces@xxxxxxxxxxx] Im Auftrag von Sebastian Parkitny
> Gesendet: Mittwoch, 17. Oktober 2007 15:28
> An: rap-dev@xxxxxxxxxxx
> Betreff: [rap-dev] Question concerning UICallBackUtil
>
> Hello,
>
> I tried to enable the Apartment Threading but I can't find the class
>
> org.eclipse.swt.lifecycle.UICallBackUtil
>
> I have the newest target platform but still can't find it. The only
> classes that may have something in common are:
>
> org.eclipse.rwt.lifecycle.UICallback
> org.eclipse.rwt.lifecycle.internal.UICallbackManager
> org.eclipse.rwt.lifecycle.internal.UICallbackServiceHandler
>
> Does anyone have an idea?
> _______________________________________________
> rap-dev mailing list
> rap-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/rap-dev
> _______________________________________________
> rap-dev mailing list
> rap-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/rap-dev
>
_______________________________________________
rap-dev mailing list
rap-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/rap-dev


Back to the top